C Programming - Structures, Unions, Enums - Discussion
Discussion Forum : Structures, Unions, Enums - Find Output of Program (Q.No. 5)
5.
What will be the output of the program ?
#include<stdio.h>
int main()
{
enum days {MON=-1, TUE, WED=6, THU, FRI, SAT};
printf("%d, %d, %d, %d, %d, %d\n", MON, TUE, WED, THU, FRI, SAT);
return 0;
}
Discussion:
31 comments Page 3 of 4.
Lakshmi said:
1 decade ago
Please can you explain me in brief.
Sega said:
1 decade ago
What about enum size in the memory?
Agana said:
1 decade ago
enum takes the size of int values.
Keerthi said:
1 decade ago
What is the size of enum?
Pragathi said:
1 decade ago
You are right karthika.
Anbu said:
1 decade ago
Thanks a lot karthika.
Manoja V. said:
8 years ago
Thank you @Karthika.
Priya said:
1 decade ago
Thanks karthika.
Mayank said:
1 decade ago
Thanks karthika.
Benazir said:
1 decade ago
Thanks karthiga.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers