The compiler had to add a couple bytes because of alignment restrictions. If you need 6 bytes exactly, try looking for some "packed" pragma's, or compiler-specific keywords used after "struct". Why...
Type: Posts; User: bernmeister
The compiler had to add a couple bytes because of alignment restrictions. If you need 6 bytes exactly, try looking for some "packed" pragma's, or compiler-specific keywords used after "struct". Why...
You better study up on compiler design. They teach comp sci courses in this, you can buy textbooks. If you're serious about writing a compiler, I suggest you invest the time up front studying...
A lot of uses of "volatile" are with systems that interface directly to hardware, where they're talking to something other than RAM, like a device control register. So, to answer your question, the...
I quit using scanf() years ago. I always use gets() first
and save input to a buffer, then use sscanf() to scan
from the buffer. Instructors ought to teach this in
first time/C courses! There's...