enum day = { jan = 1 ,feb=4, april, may}
what is the value of may?
a)4 b)5 c)6 d)11
e)none of the above
Answer Posted / yash
ans is:6
becase enum takes contiguous values
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is an lvalue in c?
Can you please compare array with pointer?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What is the main difference between calloc () and malloc ()?
Can we increase size of array in c?
What is calloc() function?
How do you construct an increment statement or decrement statement in C?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
What are the advantages of c preprocessor?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Write a program to generate random numbers in c?
Why does everyone say not to use scanf? What should I use instead?
Do character constants represent numerical values?
What is omp_num_threads?