C Programming What will be the output of the program ?#includevoid main(){ printf(5+"Good Morningn");} None of these M Good Morning Good Morning None of these M Good Morning Good Morning 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);} Complier error Enter your age: xyz Your age is not valid Enter your age: xyz You have lived for 0 seconds Enter your age : xyz Your age is not valid Complier error Enter your age: xyz Your age is not valid Enter your age: xyz You have lived for 0 seconds Enter your age : xyz Your age is not valid ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 5 2 5 5 8 5 5 2 4 4 2 4 5 2 5 5 8 5 5 2 4 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int b=15, c=5, d=8, e=8, a;a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15;printf("%d", a); 14 13 15 Garbage Value 12 14 13 15 Garbage Value 12 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} 0 Garbage Value Code will not compile 0 0 Garbage vlaue Garbage Value Garbage value 0 0 Garbage Value Code will not compile 0 0 Garbage vlaue Garbage Value Garbage value 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);} None of These %d\n 300 Error None of These %d\n 300 Error ANSWER DOWNLOAD EXAMIANS APP