enum
{
SUNDAY,
MONDAY,
TUESDAY,
}day;
main()
{
day =20;

printf("%d",);
getch();
}
what will be the output of the above program

Answer Posted / shrikant auti

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c called c?

637


What is the purpose of void pointer?

603


What are register variables in c?

577


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3060


What are the differences between new and malloc in C?

612






What is dangling pointer in c?

627


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

728


what is event driven software and what is procedural driven software?

2019


Are pointers integer?

554


What is typeof in c?

611


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

641


What is the meaning of typedef struct in c?

601


Explain the use of keyword 'register' with respect to variables.

594


please send me the code for multiplying sparse matrix using c

1729


What header files do I need in order to define the standard library functions I use?

543