Single Choice Not Set

QWhat would be the output of the following program?

#include<stdio.h> 
 int x = 40 ;
void main()
{

    int x = 20 ;
    printf("\n%d ",x);
}

ID: #1399 Data Types in C Language 1,651 views
Question Info
#1399Q ID
Not SetDifficulty
Data Types in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 21
  • B 20
  • C 22
  • D no output
Correct Answer

Explanation

Run in 6b-bit machine
20 Press any key to continue . . .

Share This Question

Challenge a friend or share with your study group.