title: How to set the 513th bit of a char[1024] in C?
body: <p>I was recently asked in an interview how to set the 513th bit of a <code>char[1024]</code> in C, but I'm unsure how to approach the problem. I saw <a href="https://stackoverflow.com/questions/47981/how-do-you-set-clear-and-toggle-a-single-bit-in-c">How do you set, clear, and toggle a single bit?</a>, but how do I choose the bit from such a large array?</p>