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 What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 2 2 1 1 2 1 1 2 2 2 1 1 2 1 1 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=3; switch(i) { default: printf("zero"); case 1: printf("one"); break; case 2: printf("two"); break; case 3: printf("three"); break; }} Error zero three None of These Error zero three None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of i and j after execution of following program?#includevoid main(){int i, j;for(i=0,j=0;i<10,j<20;i++,j++){printf("i=%d %t j=%d", i, j); }} 10 10 10 20 Run time error 20 20 10 10 10 20 Run time error 20 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program? #include\ int main(){ extern int i; i = 20; printf("%ld ", sizeof(i)); return 0; } 4 Linker Error : Undefined symbol 'i' 2 Depends on the Compiler 4 Linker Error : Undefined symbol 'i' 2 Depends on the Compiler ANSWER DOWNLOAD EXAMIANS APP
C Programming The library function used to find the last occurrence of a character in a string is strnstr() strstr() laststr() None of these strrchr() strnstr() strstr() laststr() None of these strrchr() ANSWER DOWNLOAD EXAMIANS APP