C Programming Which of the following function is used to find the first occurrence of a given string in another string? strstr() strrchr() None of these strnset() strchr() strstr() strrchr() None of these strnset() strchr() 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. 2, 4 2, 3 1 None of these 1, 4 2, 4 2, 3 1 None of these 1, 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming Given b=110 and c=20, what is the value of 'a' after execution of the expression a=b-=c*=5? -10 110 450 10 -110 -10 110 450 10 -110 ANSWER DOWNLOAD EXAMIANS APP
C Programming If integer needs two bytes of storage, then maximum value of an unsigned integer is 215 – 1 215 None of these 216 – 1 216 215 – 1 215 None of these 216 – 1 216 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 -5 30 15 1 10 -5 30 15 1 10 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);} 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 Enter your age: xyz "after that program will stop" ANSWER DOWNLOAD EXAMIANS APP