The first one is probably trying to write to NULL, since it's a global.
You got lucky in the second one. In that one it might not be NULL, and might point to somewhere in a valid memory page.
Main must return int, not void.
The first one is probably trying to write to NULL, since it's a global.
You got lucky in the second one. In that one it might not be NULL, and might point to somewhere in a valid memory page.
Main must return int, not void.
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"