What is output of the following program?
#include <iostream>
using namespace std;
int x = 19;
int main()
{
int x = 21;
{
int x = 41;
cout <<::x<<x<<::x<<"\n";
}
return 0;
}
Answers
Answered by
7
code have error:-
unused variable int x=21;
not method name or return type for the block statement 7 to 10.
If error removed, then output:-
194119 { assuming int x =21 not exist}
Similar questions