cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
help in pointer
help in pointer
Jan 30, 2014 at 9:46pm UTC
lekha
(17)
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 UTC
Danny Toledo
(469)
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.