C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 33 1 -1 0 Compilation Error 33 1 -1 0 Compilation Error ANSWER DOWNLOAD EXAMIANS APP
C Programming In C programming language, which of the following type of operators have the highest precedence Equality operators Arithmetic operators Relational operators Logical operators Equality operators Arithmetic operators Relational operators Logical operators ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } 4 4 5 6 7 1 2 3 4 Syntax error Runtime error 4 4 5 6 7 1 2 3 4 Syntax error Runtime error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} 10 Segmentation fault/runtime crash Undefined behavior Compiler time error 10 Segmentation fault/runtime crash Undefined behavior Compiler time error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 2 1 1 1 1 2 2 2 2 1 1 1 1 2 2 2 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);} None of these. will print Hello World will print garbage value Compilation Error None of these. will print Hello World will print garbage value Compilation Error ANSWER DOWNLOAD EXAMIANS APP