C Programming What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 2 3 3 3 2 2 2 4 3 4 2 3 3 3 2 2 2 4 3 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of following program code?#include int main(void){ char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d", p); return 0;} 6 5 9 None of these Error 6 5 9 None of these Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Pick the correct statements.I. The body of a function should have only one return statement.II. The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. I and III II and IV III and IV II and III I and II I and III II and IV III and IV II and III I and II ANSWER DOWNLOAD EXAMIANS APP
C Programming Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 I and II III and IV I, III and IV I, II and III II and III I and II III and IV I, III and IV I, II and III II and III 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 = 4, c = 6 b = 3, c = 6 b = 4, c = 6 a = 4, c = 8 a = 3, c = 8 a = 4, c = 6 b = 3, c = 6 b = 4, c = 6 a = 4, c = 8 a = 3, c = 8 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which is the only function all C programs must contain? system() getch() printf() main() start() system() getch() printf() main() start() ANSWER DOWNLOAD EXAMIANS APP