O

Omkar Shekhavat • 1.09K Points
Master

Q. The output of this program is

Code:
int a = 10;
void main()
{
int a = 20;
cout << a << ::a;
}
  • (A) Syntax error
  • (B) 10 20
  • (C) 20 10
  • (D) 20 20
  • Correct Answer - Option(C)
  • Views: 130
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics