enum colors {BLACK,BLUE,GREEN}
main()
{
printf("%d..%d..%d",BLACK,BLUE,GREEN);
return(1);
}
Answers were Sorted based on User's Feedback
Answer / surenda pal singh chouhan
0..1..2
Explanation:
enum assigns numbers starting from 0, if not explicitly
defined
Is This Answer Correct ? | 31 Yes | 0 No |
Answer / vignesh1988i
the ascii values of B,B,G will be printed..............
since these black,blue and green are strings given directly
in the printf statements..... so the base address will be
going to the function definition of printf......
Is This Answer Correct ? | 0 Yes | 13 No |
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
what is unsigened char and what is the difference from char
what is c?
Is calloc better than malloc?
what is the difference between procedure oriented and object oriented progaming language
int a[3][5]={ {1,2,3,4,5],{2,3,4,5,6},{10,11,12,13,14}}; int *p=&a; printf(ā%dā,*(*(x+1)+3));
Can you think of a logic behind the game minesweeper.
Do you know the difference between malloc() and calloc() function?
What are the types of arrays in c?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
Is the exit() function same as the return statement? Explain.
0 Answers Agilent, ZS Associates,
code for copying two strings with out strcpy() function.