C Programming Determine output:void main(){ extern int i; i=20; printf("%d", sizeof(i));} Compiler Error 2 Linker Error 20 Compiler Error 2 Linker Error 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 You have lived for 0.00000 seconds Run time error Enter your age: xyz "after that program will stop" Enter your age: xyz You have lived for 0 seconds Enter your age: xyz You have lived for 0.00000 seconds Run time error Enter your age: xyz "after that program will stop" 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. There will be a compilation error reported. Prints the value of 0 one time only. A run time error will be generated. The program will not enter into the loop. The loop will run infinitely many times. There will be a compilation error reported. Prints the value of 0 one time only. A run time error will be generated. The program will not enter into the loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?void main(){ char str1[] = "abcd"; char str2[] = "abcd"; if(str1==str2) printf("Equal"); else printf("Unequal");} Equal Error Unequal None of these. Equal Error Unequal None of these. ANSWER DOWNLOAD EXAMIANS APP
C Programming The library function used to find the last occurrence of a character in a string is laststr() None of these strstr() strrchr() strnstr() laststr() None of these strstr() strrchr() strnstr() ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program if the array begins at address 65486?#includevoid main(){ int arr[] = {12, 14, 15, 23, 45}; printf("%u, %u", arr, &arr);} None of these 65486, 65490 65486, 65486 65486, 65488 65486, 65487 None of these 65486, 65490 65486, 65486 65486, 65488 65486, 65487 ANSWER DOWNLOAD EXAMIANS APP