You are not logged in.

#1 2015-05-26 06:25:23

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

Output:

Question:
int a = 10;

void main()
{
int a = 20;
cout << a << ::a;
}
The output of this program is:

Option A):
10 10
Option B):
20 20
Option C):
10 20
Option D):
20 10

Correct Answer is Option D):
20 10


Failure is the first step towards seccess.

2015-05-26 06:25:23

Advertisement
Ads By Google

Re: Output:



Board footer