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;} 9 None of these 6 5 Error 9 None of these 6 5 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming The declarationint (*p) [5];means None of these. p is one dimensional array of size 5, of pointers to integers. p is a pointer to a 5 elements integer array. The same as int *p[ None of these. p is one dimensional array of size 5, of pointers to integers. p is a pointer to a 5 elements integer array. The same as int *p[ ANSWER DOWNLOAD EXAMIANS APP
C Programming The output of the following program is:#define f(g,g2) g##g2void main(){ int var12=100; printf("%d", f(var,12));} g##g2 10012 Syntax error 100 Runtime error g##g2 10012 Syntax error 100 Runtime error 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. II and III I, II, III and IV I and II II, III and IV I, II and III II and III I, II, III and IV I and II II, III and IV I, II and III ANSWER DOWNLOAD EXAMIANS APP
C Programming What number would be shown on the screen after the following statements of C are executed?char ch; int i; ch = 'G'; i = ch-'A';printf("%d", i); 6 9 7 8 5 6 9 7 8 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Who is father of C Language? F. Codd Gosling Dr. Bjarne Stroustrup James Dennis Ritchie F. Codd Gosling Dr. Bjarne Stroustrup James Dennis Ritchie ANSWER DOWNLOAD EXAMIANS APP