C Programming Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;} a[1] = 3 Compilation error a[0] = 3 a[0] = 2 a[1] = 2 a[1] = 3 Compilation error a[0] = 3 a[0] = 2 a[1] = 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is the correct way of declaring a float pointer: float *ptr; None of these float ptr; *float ptr; float *ptr; None of these float ptr; *float ptr; 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 4 5 5 5 5 2 4 4 2 5 5 2 4 5 5 5 5 2 4 4 2 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#includevoid main(){ register i=5; char j[]= "hello"; printf("%s %d", j, i);} None of These hello 5 hello garbage value Error None of These hello 5 hello garbage value Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What does the following declaration mean?int (*ptr)[10]; ptr is an pointer to array ptr is array of pointers to 10 integers ptr is a pointer to an array of 10 integers ptr is an array of 10 integers ptr is an pointer to array ptr is array of pointers to 10 integers ptr is a pointer to an array of 10 integers ptr is an array of 10 integers ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of given program?#includevoid main(){ int i=1, j=-1; if((printf("%d", i)) < (printf("%d", j))) printf("%d", i); else printf("%d", j);} 1 -1 1 -1 1 1 -1 -1 complier error 1 -1 1 -1 1 1 -1 -1 complier error ANSWER DOWNLOAD EXAMIANS APP