C Programming The library function used to find the last occurrence of a character in a string is strrchr() strnstr() laststr() strstr() None of these strrchr() strnstr() laststr() strstr() None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){float num=5.6;switch(num){case 5:printf("5");case 6:printf("6");default : printf("0");break;}printf("%d", num);} 0 5.600000 6 5.600000 5 5.600000 Complier error 0 5.600000 6 5.600000 5 5.600000 Complier error ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is more appropriate for reading in a multi-word string? puts() scanf() None of these printf() gets() puts() scanf() None of these printf() gets() ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are correct about an array?1. The array int num[26]; can store 26 elements.2. The expression num[1] designates the very first element in the array.3. It is necessary to initialize the array at the time of declaration.4. The declaration num[SIZE] is allowed if SIZE is a macro. None of these 1, 4 2, 4 2, 3 1 None of these 1, 4 2, 4 2, 3 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of given program if user enter "xyz" ?#includevoid main(){float age, AgeInSeconds;printf("Enter your age:");scanf("%f", &age);AgeInSeconds = 365 * 24 * 60 * 60 * age;printf("You have lived for %f seconds", AgeInSeconds);} Enter your age: xyz "after that program will stop" Run time error Enter your age: xyz You have lived for 0 seconds Enter your age: xyz You have lived for 0.00000 seconds Enter your age: xyz "after that program will stop" Run time error Enter your age: xyz You have lived for 0 seconds Enter your age: xyz You have lived for 0.00000 seconds ANSWER DOWNLOAD EXAMIANS APP
C Programming Pick the correct statements.I. The body of a function should have only one return statement.II. The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. II and III III and IV I and II II and IV I and III II and III III and IV I and II II and IV I and III ANSWER DOWNLOAD EXAMIANS APP