enum colors {BLACK,BLUE,GREEN}
main()
{
printf("%d..%d..%d",BLACK,BLUE,GREEN);
return(1);
}
Answer Posted / 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 |
Post New Answer View All Answers
In C language what is a 'dangling pointer'?
What is function prototype?
What is a pointer variable in c language?
Explain is it better to bitshift a value than to multiply by 2?
What is the difference between break and continue?
Can a void pointer point to a function?
Can you please explain the difference between malloc() and calloc() function?
What is a 'null pointer assignment' error?
Explain modulus operator. What are the restrictions of a modulus operator?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
How can I use a preprocessorif expression to ?
#include
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
How can I trap or ignore keyboard interrupts like control-c?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above