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);} Garbage value Error 3 6 Garbage value Error 3 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i); 0 0123456789 10 Syntax error Infinite loop 0 0123456789 10 Syntax error Infinite loop ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; printf("%d %d", sizeof(*p), sizeof(p));} 2 2 1 2 2 1 1 1 2 2 1 2 2 1 1 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);} 12 Error 11 1 12 Error 11 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} -1 16 19 17 20 -1 16 19 17 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming In an expression involving || operator, evaluationI. Will be stopped if one of its components evaluates to falseII. Will be stopped if one of its components evaluates to trueIII. Takes place from right to leftIV. Takes place from left to right I and III III and IV II and IV II and III I and II I and III III and IV II and IV II and III I and II ANSWER DOWNLOAD EXAMIANS APP