C Programming The library function used to find the last occurrence of a character in a string is strnstr() strstr() laststr() strrchr() None of these strnstr() strstr() laststr() strrchr() 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 12 24 6 It will not compile because not enough initializers are given 7 12 24 6 It will not compile because not enough initializers are given ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} The loop will run infinitely many times. Prints the value of 0 one time only. A run time error will be generated. There will be a compilation error reported. The program will not enter into the loop. The loop will run infinitely many times. Prints the value of 0 one time only. A run time error will be generated. There will be a compilation error reported. The program will not enter into the loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);} 1 11 Error 12 1 11 Error 12 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);} Segmentation fault/runtime crash Undefined behavior Compiler time error 10 Segmentation fault/runtime crash Undefined behavior Compiler time error 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of this program on an implementation where int occupies 2 bytes?#include void main(){ int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j);} i=5 j=2 the behavior is undefined i=3 j=2 i=4 j=2 i=5 j=2 the behavior is undefined i=3 j=2 i=4 j=2 ANSWER DOWNLOAD EXAMIANS APP