C Programming The library function used to find the last occurrence of a character in a string is None of these strnstr() strstr() strrchr() laststr() None of these strnstr() strstr() strrchr() laststr() ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is used to find the first occurrence of a given string in another string? strrchr() strchr() strnset() None of these strstr() strrchr() strchr() strnset() None of these strstr() ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of given program if user enter "xyz" ?#includevoid main(){float age, AgeInSeconds;int value;printf("Enter your age:");value=scanf("%f", &age);if(value==0){printf("\\nYour age is not valid");}AgeInSeconds = 365 * 24 * 60 * 60 * age;printf("\\n You have lived for %f seconds", AgeInSeconds);} Enter your age: xyz You have lived for 0 seconds Enter your age: xyz Your age is not valid Enter your age : xyz Your age is not valid Complier error Enter your age: xyz You have lived for 0 seconds Enter your age: xyz Your age is not valid Enter your age : xyz Your age is not valid Complier error 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); }} 20 20 10 10 10 20 Run time error 20 20 10 10 10 20 Run time error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will happen after compiling and running following code?main(){ printf("%p", main); } None of these. Error Some address will be printed. Will make an infinite loop. None of these. Error Some address will be printed. Will make an infinite loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the maximum number of dimensions an array in C may have? 20 Theoratically no limit. The only practical limits are memory size and compilers. 50 8 2 20 Theoratically no limit. The only practical limits are memory size and compilers. 50 8 2 ANSWER DOWNLOAD EXAMIANS APP