Hi question_asker.
This question should be asked in a C/C++ forum: this forum is intended for topics related to Microsoft Learning and Certification.
In the C programming language, a global variable is always initialized to 0, while this does not happen for any local variable (like the "b" one): they must explicitly initialized.
Bye.
Luigi Bruno
MCP, MOS, MTA, MCTS, MCSA, MCSE