C Programming What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 3 3 2 3 3 4 2 2 2 4 3 3 2 3 3 4 2 2 2 4 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 Unequal Error None of these. Equal Unequal Error None of these. ANSWER DOWNLOAD EXAMIANS APP
C Programming The address operator &, cannot act on R-values Arithmetic expressions Both of the above Members of a structure Local variables R-values Arithmetic expressions Both of the above Members of a structure Local variables ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of given program if user enter value 99?#includevoid main(){int i;printf("Enter a number:");scanf("%d", &i); // 99 is given as input.if(i%5 == 0){printf("nNumber entered is divisible by 5"); }} Enter a number:99 complier error Run time error Enter a number:99 Number is divisible by 5 Enter a number:99 complier error Run time error Enter a number:99 Number is divisible by 5 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]);} Garbage vlaue Garbage Value Garbage value 0 Code will not compile 0 Garbage Value 0 0 Garbage vlaue Garbage Value Garbage value 0 Code will not compile 0 Garbage Value 0 0 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);} 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 Complier error ANSWER DOWNLOAD EXAMIANS APP