How come when I open up a combiled C program in notepad I see a lot of nulls?

by on April 4, 2010

Q: I opened up a compiled C program in notepad and noticed that there are an insane amount of nulls. Why is that?


One Response to “How come when I open up a combiled C program in notepad I see a lot of nulls?”
  1.  

    A compiled program in any language, not just C, is all in binary. Notepad does not have the ability to read binary files so you are going to see nothing but a bunch of garbage that makes no sense at all. You might be able to see a string or two but that is about it.

    Is there any reason you are trying to look at the compiled code?