C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 1 -1 33 Compilation Error 0 1 -1 33 Compilation Error 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here} 10 1 Garbage Value None of These 10 1 Garbage Value None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=5, j=6, z; printf("%d", i+++j);} 11 None of These 13 12 11 None of These 13 12 ANSWER DOWNLOAD EXAMIANS APP
C Programming A function 'p' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as int(*p(char *))[] int *p(char *)[] int (*p) (char *)[] None of these. int(*p(char *))[] int *p(char *)[] int (*p) (char *)[] None of these. 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? 7 It will not compile because not enough initializers are given 12 24 6 7 It will not compile because not enough initializers are given 12 24 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following code:void main(){ int a[5] = {6,8,3,9,0}, i=0; if(i != 0) { break; printf("%d", a[i]); } else printf("%d", a[i++]);}What is the output of the above program? 8 6 No output Syntax error Runtime error 8 6 No output Syntax error Runtime error ANSWER DOWNLOAD EXAMIANS APP