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 |
What is declaration and definition in c?
What is operator precedence?
Write a code to generate divisors of an integer?
main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output?
What is pragma in c?
what is memory leak?
What is the difference between strcpy() and memcpy() function in c programming?
Why is extern used in c?
What is the use of getch ()?
what is diffrence between string and character array?
What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }
Why doesn't the code "a[i] = i++;" work?