C Programming Which of the following is the correct way of declaring a float pointer: float ptr; None of these *float ptr; float *ptr; float ptr; None of these *float ptr; float *ptr; 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 Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 -5 15 10 1 30 -5 15 10 1 30 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following code:void main(){ int a[5] = {6,8,3,9,0}, i=0; if(i != 0) { break; printf("%d", a[i]); } else printf("%d", a[i++]);}What is the output of the above program? Runtime error 6 8 Syntax error No output Runtime error 6 8 Syntax error No output ANSWER DOWNLOAD EXAMIANS APP
C Programming The output of the following program is:#define f(g,g2) g##g2void main(){ int var12=100; printf("%d", f(var,12));} Syntax error 100 g##g2 10012 Runtime error Syntax error 100 g##g2 10012 Runtime error ANSWER DOWNLOAD EXAMIANS APP
C Programming Pick the correct statements.I. The body of a function should have only one return statement.II. The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. II and IV I and III I and II II and III III and IV II and IV I and III I and II II and III III and IV ANSWER DOWNLOAD EXAMIANS APP