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
Why is c called c?
What is the purpose of void pointer?
What are register variables in c?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What are the differences between new and malloc in C?
What is dangling pointer in c?
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
what is event driven software and what is procedural driven software?
Are pointers integer?
What is typeof in c?
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
What is the meaning of typedef struct in c?
Explain the use of keyword 'register' with respect to variables.
please send me the code for multiplying sparse matrix using c
What header files do I need in order to define the standard library functions I use?