This very simple c++ code ran correctly on my mac with xcode. int a got printed as 0. I ran the same code on a win 7 machine with recently installed code::blocks and a was printed as 54. As a matter of fact when I gave other values to int a then the int a was still printed as 54 ???????
Code:#include <iostream> using namespace std; int main( ) { cout << "This is my first try" << endl; int a,b; a=0; b=3; cout << "a is " << a << endl; return 0; }