Examveda
Examveda

What will be the output of the following C code if input given is 2?
#include<stdio.h>
enum day
{
    a,b,c=5,d,e
};
main()
{
    printf("Enter the value for a");
    scanf("%d",a);
    printf("%d",a);
}

A. 2

B. 0

C. 3

D. Error

Answer: Option D


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals