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);} 6 Error Garbage value 3 6 Error Garbage value 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} 0 0 0 Error garbage values 1 1 1 0 0 0 Error garbage values 1 1 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50} Error 0 10..50 10..10 Error 0 10..50 10..10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int var = 5; printf("%d ", var--); if(var) main();} 5 5 5 5 5 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 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the maximum number of dimensions an array in C may have? 8 2 20 Theoratically no limit. The only practical limits are memory size and compilers. 50 8 2 20 Theoratically no limit. The only practical limits are memory size and compilers. 50 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed if the following code is executed?void main(){ int x=0; for( ; ; ) { if( x++ == 4 ) break; continue; } printf("x=%d", x);} x=0 Error x=4 x=5 x=1 x=0 Error x=4 x=5 x=1 ANSWER DOWNLOAD EXAMIANS APP