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 |
Do pointers store the address of value or the actual value of a variable?
WRITE A PROGRAM TO FIND A REVERSE OF TWO NO
Write a programme to find even numbers without using any conditional statement?
3 Answers ADD Software, Infosys,
convert 0.9375 to binary
#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }
Explain that why C is procedural?
main() { int a[3][4] ={1,2,3,4,5,6,7,8,9,10,11,12} ; int i, j , k=99 ; for(i=0;i<3;i++) for(j=0;j<4;j++) if(a[i][j] < k) k = a[i][j]; printf("%d", k); }
4 Answers Vector, Wipro, Zoho,
How macro execution is faster than function ?
What is indirect recursion? give an example?
What is a far pointer?What is the utility?
How can I manipulate strings of multibyte characters?
What is a const pointer, and how does it differ from a pointer to a const?