GYANTONIC
Placement Preparation
Aptitude Test
HR Interview
C / C++ Test
Career
Login
Create Account
Ask Question
Q & A
Articles
Become Mentor
Home
>
Discussion Topics
>
Discussions
Discuss this Question
What will get printed
#include<iostream.h>
int x = 10 ;
void main( )
{
int x = 20;
::x = x + ::x;
cout <<x;
}
10
20
30
Run time error
Answer :
20
Share
|
Previous Comments
::x=10 && x=20;
::x=20+10
::x=30;
then why 20
On :
16-Aug-2011
By :
Prashant
Report Abuse
|
Reply
what's the ans with eplanation.....
On :
10-Apr-2011
By :
shashank singh
Report Abuse
|
Reply
Your Comments
Login to Post
Ask a Question
Type your question here.
Latest Articles
What to opt after B.Tech: MBA or M.Tech
The .NET FRAMEWORK
Importance of practical education
Choosing the right Coaching Centre
Understanding Locking in SQL Server
How to cope with failure
Entrepreneurship - the need of the hour
All Articles...