C Programming Determine output:void main(){ extern int i; i=20; printf("%d", sizeof(i));} 20 2 Compiler Error Linker Error 20 2 Compiler Error Linker Error ANSWER DOWNLOAD EXAMIANS APP
C Programming The address operator &, cannot act on Arithmetic expressions Local variables Members of a structure R-values Both of the above Arithmetic expressions Local variables Members of a structure R-values Both of the above ANSWER DOWNLOAD EXAMIANS APP
C Programming char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed? y=AMVEDA y=EDA y=EXAMIANS y=MVEDA y=VEDA y=AMVEDA y=EDA y=EXAMIANS y=MVEDA y=VEDA 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 Enter your age: xyz "after that program will stop" Run time error Enter your age: xyz You have lived for 0 seconds Enter your age: xyz You have lived for 0.00000 seconds Enter your age: xyz "after that program will stop" Run time error ANSWER DOWNLOAD EXAMIANS APP
C Programming Which operator has the lowest priority? && + || % ++ && + || % ++ ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of i and j after execution of following program?#includevoid main(){int i, j;for(i=0,j=0;i<10,j<20;i++,j++){printf("i=%d %t j=%d", i, j); }} 20 20 10 20 10 10 Run time error 20 20 10 20 10 10 Run time error ANSWER DOWNLOAD EXAMIANS APP