Single Choice Not Set

QWhat would be the output of the following program?

#include<stdio.h> 

void main()
{
    int x = 40 ;
    {
    int x = 20 ;
    printf("\n%d ",x);
    }
    printf("%d ",x);
}

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

Choose the Best Option

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

  • A 40 20
  • B 21 40
  • C 20 40
  • D 20 41
Correct Answer

Explanation

Run in 64-bit machine
20 40 Press any key to continue . . .

Share This Question

Challenge a friend or share with your study group.