C Programming Find the output of the following program.#define INC(X) X++void main(){ int x=4; printf("%d", INC(x++));} Error 5 4 6 Error 5 4 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} a = 3, c = 8 a = 4, c = 8 a = 4, c = 6 b = 4, c = 6 b = 3, c = 6 a = 3, c = 8 a = 4, c = 8 a = 4, c = 6 b = 4, c = 6 b = 3, c = 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 5 5 5 5 5 2 4 4 2 4 5 2 5 5 5 5 5 2 4 4 2 4 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 1 0 -1 Compilation Error 33 1 0 -1 Compilation Error 33 ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the correct statement.I. The scope of a macro definition need not be the entire program.II. The scope of a macro definition extends from the point of definition to the end of the file.III. New line is a macro definition delimiter.IV. A macro definition may go beyond a line. I, II, III and IV I, II and III II and III I and II II, III and IV I, II, III and IV I, II and III II and III I and II II, III and IV ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following code:void main(){ int a[5] = {6,8,3,9,0}, i=0; if(i != 0) { break; printf("%d", a[i]); } else printf("%d", a[i++]);}What is the output of the above program? 6 Syntax error Runtime error No output 8 6 Syntax error Runtime error No output 8 ANSWER DOWNLOAD EXAMIANS APP