C Programming Which of the following function calculates the square of 'x' in C? power(2, x) power(x, 2) sqr(x) pow(x, 2) pow(2, x) power(2, x) power(x, 2) sqr(x) pow(x, 2) pow(2, x) ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.#define INC(X) X++void main(){ int x=4; printf("%d", INC(x++));} Error 5 6 4 Error 5 6 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp); } 0x1234ABCD, 0x1234ABCD, 10 Syntax error Runtime error 0x1234ABCD, 10, 10 0x1234ABCD, 0x1234ABCD, 0x1234ABCD 0x1234ABCD, 0x1234ABCD, 10 Syntax error Runtime error 0x1234ABCD, 10, 10 0x1234ABCD, 0x1234ABCD, 0x1234ABCD ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#includevoid main(){ float arr[] = {12.4, 2.3, 4.5, 6.7}; printf("%d", sizeof(arr)/sizeof(arr[0]));} 6 4 None of these 7 5 6 4 None of these 7 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} 19 17 16 -1 20 19 17 16 -1 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements? arr{6} arr[7] arr[6] None of these arr{7} arr{6} arr[7] arr[6] None of these arr{7} ANSWER DOWNLOAD EXAMIANS APP