int a = 10;
void main()
{
int a = 20;
cout << a << ::a;
}
The output of this program is
A. Syntax error
B. 10 20
C. 20 10
D. 20 20
void main()
{
int a = 20;
cout << a << ::a;
}
The output of this program is
A. Syntax error
B. 10 20
C. 20 10
D. 20 20
1 comments:
it takes global value due to :: operator
Post a Comment