C Programming If integer needs two bytes of storage, then maximum value of an unsigned integer is 215 216 215 – 1 216 – 1 None of these 215 216 215 – 1 216 – 1 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); } H None of these. Hello Some address will be printed H None of these. Hello Some address will be printed ANSWER DOWNLOAD EXAMIANS APP
C Programming short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? 12 6 It will not compile because not enough initializers are given 24 7 12 6 It will not compile because not enough initializers are given 24 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function calculates the square of 'x' in C? power(2, x) power(x, 2) pow(x, 2) pow(2, x) sqr(x) power(2, x) power(x, 2) pow(x, 2) pow(2, x) sqr(x) 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[][4]){} void fun(int *p[4]){} void fun(int *p[][4]){} None of these void fun(int *p[3][4]){} void fun(int p[][4]){} void fun(int *p[4]){} void fun(int *p[][4]){} None of these void fun(int *p[3][4]){} ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c[] = {2.8,3.4,4,6.7,5}; int j, *p=c, *q=c; for(j=0;j<5;j++){ printf(" %d ", *c); ++q; } for(j=0;j<5;j++){ printf(" %d ", *p); ++p; }} 2.8 2.8 2.8 2.8 2.8 2.8 3.4 4 2 2 2 2 2 2 3 4 6 5 2 3 4 6 5 2 3 4 6 5 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 2.8 2.8 2.8 2.8 2.8 2.8 3.4 4 2 2 2 2 2 2 3 4 6 5 2 3 4 6 5 2 3 4 6 5 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 ANSWER DOWNLOAD EXAMIANS APP