Determine output:main(){ int i = abc(10); printf("%d", --i);}int abc(int i){ return(i++);} 10 None of these. 11 9 TRUE ANSWER : ? YOUR ANSWER : ?
The statement int **a; is illegal is legal but meaningless is syntactically and semantically correct None of these. TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output?void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } } Compiler Error XAM is printed exam is printed Nothing is printed TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=-1, j=-1, k=0, l=2, m; m = i++ && j++ && k++ || l++; printf("%d %d %d %d %d", i, j, k, l, m);} 0 0 1 3 0 0 0 0 2 1 0 0 1 3 1 0 0 1 2 0 TRUE ANSWER : ? YOUR ANSWER : ?
C preprocessor Takes care of conditional compilation All of these Acts before compilation Takes care of macros Takes care of include files TRUE ANSWER : ? YOUR ANSWER : ?
What will happen after compiling and running following code?main(){ printf("%p", main); } None of these. Error Some address will be printed. Will make an infinite loop. TRUE ANSWER : ? YOUR ANSWER : ?
void main(){ int a=10, b; b = a++ + ++a; printf("%d %d %d %d", b, a++, a, ++a);}what will be the output when following code is executed? 22 11 11 11 22 12 12 13 22 13 14 14 12 10 11 13 22 14 12 13 TRUE ANSWER : ? YOUR ANSWER : ?
Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 III and IV I, III and IV I and II II and III I, II and III TRUE ANSWER : ? YOUR ANSWER : ?
The type of the controlling expression of a switch statement cannot be of the type ........ short char float long int TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following function is more appropriate for reading in a multi-word string? puts() None of these printf() gets() scanf() TRUE ANSWER : ? YOUR ANSWER : ?