C Programming Which of the following function calculates the square of 'x' in C? pow(2, x) pow(x, 2) power(x, 2) sqr(x) power(2, x) pow(2, x) pow(x, 2) power(x, 2) sqr(x) power(2, x) ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 54554 54544 45445 45545 54554 54544 45445 45545 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.00000 seconds Enter your age: xyz You have lived for 0 seconds Run time error Enter your age: xyz "after that program will stop" Enter your age: xyz You have lived for 0.00000 seconds Enter your age: xyz You have lived for 0 seconds Run time error Enter your age: xyz "after that program will stop" ANSWER DOWNLOAD EXAMIANS APP
C Programming What will happen after compiling and running following code?main(){ printf("%p", main); } Some address will be printed. None of these. Error Will make an infinite loop. Some address will be printed. None of these. Error Will make an infinite loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 0.5 0.25 1 2 9 0.5 0.25 1 2 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char string[]="Hello World"; display(string);}void display(char *string){ printf("%s", string);} Can't Say will print Hello World None of These Compiler Error Can't Say will print Hello World None of These Compiler Error ANSWER DOWNLOAD EXAMIANS APP