enum
{
SUNDAY,
MONDAY,
TUESDAY,
}day;
main()
{
day =20;
printf("%d",);
getch();
}
what will be the output of the above program
If u observe the program carefully,you will come to know
ther is syntax error.
enum
{
SUNDAY,
MONDAY,
TUESDAY,
}day;
main()
{
day =20;
printf("%d",);//printf("%d",) error maker
getch();
}
If u put it
printf("%d",day);
then it will print 20 because 20 is the latest value
assigned for day.
| Is This Answer Correct ? | 8 Yes | 0 No |
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
write a c program for swapping two strings using pointer
what is an array
What are the key features in c programming language?
How many bytes is a struct in c?
What is the difference between calloc() and realloc()?
write a program to print %d ?
What is the difference between array_name and &array_name?
errors in computer programmes are called
What is the difference between arrays and pointers?
When should the const modifier be used?
output for following code??? main() { int x=2,y,z; x*=3+2; printf("1.%d\n",x); x*=y=z=4; printf("2.%d %d %d\n",x,y,z); x=y==z; printf("3.%d\n",x); x==(y=z); printf("%d",x); }