C Programming What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } Syntax error Runtime error 4 5 6 7 4 1 2 3 4 Syntax error Runtime error 4 5 6 7 4 1 2 3 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;} a[0] = 2 Compilation error a[0] = 3 a[1] = 2 a[1] = 3 a[0] = 2 Compilation error a[0] = 3 a[1] = 2 a[1] = 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} The program will not enter into the loop. There will be a compilation error reported. Prints the value of 0 one time only. A run time error will be generated. The loop will run infinitely many times. The program will not enter into the loop. There will be a compilation error reported. Prints the value of 0 one time only. A run time error will be generated. The loop will run infinitely many times. ANSWER DOWNLOAD EXAMIANS APP
C Programming The operator > and < are meaningful when used with pointers, if The pointers point to elements of the same array. The pointers point to data of similar type. None of these. The pointers point to structure of similar data type. The pointers point to elements of the same array. The pointers point to data of similar type. None of these. The pointers point to structure of similar data type. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of this program on an implementation where int occupies 2 bytes?#include void main(){ int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j);} i=4 j=2 i=3 j=2 the behavior is undefined i=5 j=2 i=4 j=2 i=3 j=2 the behavior is undefined i=5 j=2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is function? Function is the fundamental modular unit. A function is usually designed to perform a specific task. Function is a block of code that performs a specific task. It has a name and it is reusable. Function is a block of statements that perform some specific task. All of these Function is the fundamental modular unit. A function is usually designed to perform a specific task. Function is a block of code that performs a specific task. It has a name and it is reusable. Function is a block of statements that perform some specific task. All of these ANSWER DOWNLOAD EXAMIANS APP