help in pointer
int x = 3;
cout << x<<2*x;
output of the code is 36.
can anyone please explain me why is it 36.
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.