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] = 2 a[1] = 3 a[0] = 3 Compilation error a[0] = 2 a[1] = 2 a[1] = 3 a[0] = 3 Compilation error a[0] = 2 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); 8 6 5 9 7 8 6 5 9 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming String concatenation means - Extracting a substring out of a string. Merging two strings. Comparing the two strings to define the larger one. Partitioning the string into two strings. Combining two strings. Extracting a substring out of a string. Merging two strings. Comparing the two strings to define the larger one. Partitioning the string into two strings. Combining two strings. ANSWER DOWNLOAD EXAMIANS APP
C Programming A preprocessor command comes before the first executable statement need not start on a new line has # as the first character need not start on the first column comes before the first executable statement need not start on a new line has # as the first character need not start on the first column 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 an array of 10 integers ptr is a pointer to an array of 10 integers ptr is an pointer to array ptr is array of pointers to 10 integers ptr is an array of 10 integers ptr is a pointer to an array of 10 integers 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);} b = 4, c = 6 a = 3, c = 8 b = 3, c = 6 a = 4, c = 6 a = 4, c = 8 b = 4, c = 6 a = 3, c = 8 b = 3, c = 6 a = 4, c = 6 a = 4, c = 8 ANSWER DOWNLOAD EXAMIANS APP