C Programming Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);} Garbage value Error 3 6 Garbage value Error 3 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ? rem = 3.14 % 2.1; Remainder cannot be obtain in floating point division. rem = fmod(3.14, 2.1); rem = modf(3.14, 2.1); rem = 3.14 % 2.1; Remainder cannot be obtain in floating point division. rem = fmod(3.14, 2.1); rem = modf(3.14, 2.1); 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 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 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char p[]="%dn"; p[1] = 'c'; printf(p, 65);} c A Error 65 c A Error 65 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of given program?#includevoid main(){ int i=1, j=-1; if((printf("%d", i)) < (printf("%d", j))) printf("%d", i); else printf("%d", j);} 1 -1 1 1 -1 -1 complier error -1 1 1 -1 1 1 -1 -1 complier error -1 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p="hi friends", *p1; p1=p; while(*p!='\0') ++*p++; printf("%s", p1);} hi friends hj grjeodt None of These ij!gsjfoet hi friends hj grjeodt None of These ij!gsjfoet ANSWER DOWNLOAD EXAMIANS APP