C Programming Which of the following function calculates the square of 'x' in C? sqr(x) pow(x, 2) power(x, 2) pow(2, x) power(2, x) sqr(x) pow(x, 2) power(x, 2) pow(2, x) power(2, x) ANSWER DOWNLOAD EXAMIANS APP
C Programming #includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);} 10, 11 11, 11 11, 10 10, 10 10, 11 11, 11 11, 10 10, 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming A preprocessor command has # as the first character need not start on a new line need not start on the first column comes before the first executable statement has # as the first character need not start on a new line need not start on the first column comes before the first executable statement ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is correct way to define the function fun() in the below program?#includevoid main(){ int a[3][4]; fun(a);} void fun(int *p[3][4]){} void fun(int *p[][4]){} void fun(int *p[4]){} None of these void fun(int p[][4]){} void fun(int *p[3][4]){} void fun(int *p[][4]){} void fun(int *p[4]){} None of these void fun(int p[][4]){} ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int var = 5; printf("%d ", var--); if(var) main();} Infinite Loop 5 4 3 2 1 None of These 5 5 5 5 5 Infinite Loop 5 4 3 2 1 None of These 5 5 5 5 5 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, 10, 10 Runtime error 0x1234ABCD, 0x1234ABCD, 10 0x1234ABCD, 0x1234ABCD, 0x1234ABCD Syntax error 0x1234ABCD, 10, 10 Runtime error 0x1234ABCD, 0x1234ABCD, 10 0x1234ABCD, 0x1234ABCD, 0x1234ABCD Syntax error ANSWER DOWNLOAD EXAMIANS APP