C Programming What will be the output of the following code fragment?void main(){ printf("%x",-1<<4);} fff4 fff3 fff1 fff0 fff2 fff4 fff3 fff1 fff0 fff2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);} Error 3 6 Garbage value Error 3 6 Garbage value ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is more appropriate for reading in a multi-word string? scanf() gets() None of these puts() printf() scanf() gets() None of these puts() printf() 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]){} 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 ANSWER DOWNLOAD EXAMIANS APP
C Programming The default parameter passing mechanism is call by value call by reference None of these. call by value result call by value call by reference None of these. call by value result 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 loop will run infinitely many times. There will be a compilation error reported. The program will not enter into the loop. Prints the value of 0 one time only. A run time error will be generated. The loop will run infinitely many times. There will be a compilation error reported. The program will not enter into the loop. Prints the value of 0 one time only. A run time error will be generated. ANSWER DOWNLOAD EXAMIANS APP