C Programming Which of the following function calculates the square of 'x' in C? 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) power(2, x) ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following program?#includeint c[10] = {1,2,3,4,5,6,7,8,9,10}; main(){ int a, b=0; for(a=0;a<10;++a) if(c[a]%2 == 1) b+=c[a]; printf("%d", b);} None of these 30 24 20 25 None of these 30 24 20 25 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are correct about an array?1. The array int num[26]; can store 26 elements.2. The expression num[1] designates the very first element in the array.3. It is necessary to initialize the array at the time of declaration.4. The declaration num[SIZE] is allowed if SIZE is a macro. 1, 4 2, 4 2, 3 None of these 1 1, 4 2, 4 2, 3 None of these 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#define prod(a,b) a*bvoid main(){ int x=3, y=4; printf("%d", prod(x+2, y-1));} 12 11 10 15 12 11 10 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char far *farther, *farthest; printf("%d..%d", sizeof(farther), sizeof(farthest));} 2..2 2..4 4..4 4..2 2..2 2..4 4..4 4..2 ANSWER DOWNLOAD EXAMIANS APP
C Programming The default parameter passing mechanism is call by value result call by reference call by value None of these. call by value result call by reference call by value None of these. ANSWER DOWNLOAD EXAMIANS APP