What is the size of enum in c?



What is the size of enum in c?..

Answer / Vivek Kumar Pranami

In C, the size of an Enum (enumeration) is equivalent to the size of an integer on your system. However, if you explicitly specify the enum's underlying type (e.g., enum MyEnum { A, B } myEnumType_t;), its size will be equal to the specified type.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is declaration and definition in c?

1 Answers  


What is operator precedence?

1 Answers  


Write a code to generate divisors of an integer?

1 Answers   Ericsson,


main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output?

7 Answers   Ramco,


What is pragma in c?

1 Answers  


what is memory leak?

3 Answers  


What is the difference between strcpy() and memcpy() function in c programming?

1 Answers  


Why is extern used in c?

1 Answers  


What is the use of getch ()?

1 Answers  


what is diffrence between string and character array?

1 Answers  


What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }

1 Answers  


Why doesn't the code "a[i] = i++;" work?

4 Answers  


Categories