Ask Question         Q & A         Articles        
Skip Navigation LinksHome > Discussion Topics > Discussions
Discuss this Question
0
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
Previous Comments
0
::x=10 && x=20;
::x=20+10
::x=30;
then why 20
On : 16-Aug-2011
By : Prashant
0
what's the ans with eplanation.....
On : 10-Apr-2011
Your Comments
Ask a Question