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 |
When should we use pointers in a c program?
How do I convert a string to all upper or lower case?
When can you use a pointer with a function?
How can I write a function that takes a format string and a variable number of arguments?
what are the advantages & disadvantages of unions?
to get a line of text and count the number of vowels in it
b) 4 c) 6 d) 7 32. Any C program a) must contain at least one function b) need not contain ant function c) needs input data d) none of the above 33. Using goto inside for loop is equivalent to using a) continue b) break c) return d)none of the above 34. The program fragment int a=5, b=2; printf(“%d”,a+++++b); a) prints 7 b)prints 8 c) prints 9 d)none of the above 35. printf(“ab” , “cd”,”ef”); prints a) ab abcdef c) abcdef, followed by garbage value d) none of the above 36. Consider the following program segment. i=6720; j=4; while((i%j)==0) { i=i/j; j=j+1; } On termination j will have the value a) 4 b) 8 c) 9 d) 6720
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What are the primitive data types in c?
Why shouldn’t I start variable names with underscores?
write a program that will print %d in the output screen??
What is volatile variable in c with example?