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[0] = 3 Compilation error a[1] = 3 a[1] = 2 a[0] = 2 a[0] = 3 Compilation error a[1] = 3 a[1] = 2 a[0] = 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming The default parameter passing mechanism is call by value call by reference None of these. call by value result call by value call by reference None of these. call by value result ANSWER DOWNLOAD EXAMIANS APP
C Programming short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? 12 It will not compile because not enough initializers are given 6 24 7 12 It will not compile because not enough initializers are given 6 24 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is used to find the first occurrence of a given string in another string? strrchr() strchr() strstr() strnset() None of these strrchr() strchr() strstr() strnset() None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?void main(){ char str1[] = "abcd"; char str2[] = "abcd"; if(str1==str2) printf("Equal"); else printf("Unequal");} Error None of these. Equal Unequal Error None of these. Equal Unequal ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ printf("%p", main);} None of These Some address will be printed make an infinite loop Error None of These Some address will be printed make an infinite loop Error ANSWER DOWNLOAD EXAMIANS APP