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

The output of this program is int a = 10; void main() {int a = 20; cout << a << ::a; } a. Syntax error b. 1020 c. 20 10 d. 20 20

Step by Step Solution

3.43 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The answer is b 1020 This is because the output of ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!