Examveda

What will be the output of the following C code?
#include<stdio.h>
enum Shyam
{
    a,b,c=5
};
enum Shyam s;
main()
{
    c++;
    printf("%d",c);
}

A. Error

B. 5

C. 6

D. 2

Answer: Option A


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals