help in pointer

Jan 30, 2014 at 9:46pm
int x = 3;
cout << x<<2*x;

output of the code is 36.
can anyone please explain me why is it 36.
Jan 30, 2014 at 9:54pm
You are not using a pointer. You are using an integer variable whose value is 3. You output that value as well as twice that value (6), therefore the output is 36.
Topic archived. No new replies allowed.