C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 33 Compilation Error 1 -1 0 33 Compilation Error 1 -1 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=1, j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; }} GOOD BAD Compiler Error None of These GOOD GOOD BAD Compiler Error None of These GOOD ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after execution of the following code?void main(){ int arr[10] = {1,2,3,4,5}; printf("%d", arr[5]);} 5 Garbage Value None of these 0 6 5 Garbage Value None of these 0 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? It cannot be applied to an expression It associates from the right All of these It is a unary operator The operand can come before or after the operator It cannot be applied to an expression It associates from the right All of these It is a unary operator The operand can come before or after the operator ANSWER DOWNLOAD EXAMIANS APP
C Programming #includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);} 11, 11 10, 10 11, 10 10, 11 11, 11 10, 10 11, 10 10, 11 ANSWER DOWNLOAD EXAMIANS APP
C Programming Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 I, III and IV I, II and III III and IV I and II II and III I, III and IV I, II and III III and IV I and II II and III ANSWER DOWNLOAD EXAMIANS APP