C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 1 0 Compilation Error 33 -1 1 0 Compilation Error 33 -1 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 Syntax error Runtime error No output 8 6 Syntax error Runtime error No output ANSWER DOWNLOAD EXAMIANS APP
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] = 2 a[0] = 3 a[1] = 3 a[1] = 2 Compilation error a[0] = 2 a[0] = 3 a[1] = 3 a[1] = 2 Compilation error ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? All of these It associates from the right The operand can come before or after the operator It cannot be applied to an expression It is a unary operator All of these It associates from the right The operand can come before or after the operator It cannot be applied to an expression It is a unary operator ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} Compilation Error None of these. will print garbage value will print Hello World Compilation Error None of these. will print garbage value will print Hello World ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} hi hi followed by garbage value Error h Garbage Value hi hi followed by garbage value Error h Garbage Value ANSWER DOWNLOAD EXAMIANS APP