C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 5 5 5 2 4 4 2 5 5 2 4 5 5 5 5 2 4 4 2 5 5 2 4 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} None of these Compilation Error 5 4 3 2 1 Infinite Loop 5 5 5 5 5 None of these Compilation Error 5 4 3 2 1 Infinite Loop 5 5 5 5 5 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 2, 3 2, 4 1, 4 1 None of these 2, 3 2, 4 1, 4 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming In an expression involving || operator, evaluationI. Will be stopped if one of its components evaluates to falseII. Will be stopped if one of its components evaluates to trueIII. Takes place from right to leftIV. Takes place from left to right II and III III and IV II and IV I and II I and III II and III III and IV II and IV I and II I and III ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){ int i=10; printf("i=%d", i); { int i=20; printf("i=%d", i); i++; printf("i=%d", i); } printf("i=%d", i);} 10 10 11 11 10 20 21 10 10 20 21 21 10 20 21 20 10 10 11 11 10 20 21 10 10 20 21 21 10 20 21 20 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 You have lived for 0 seconds Enter your age: xyz "after that program will stop" Run time error Enter your age: xyz You have lived for 0.00000 seconds Enter your age: xyz You have lived for 0 seconds Enter your age: xyz "after that program will stop" Run time error Enter your age: xyz You have lived for 0.00000 seconds ANSWER DOWNLOAD EXAMIANS APP