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 6 Garbage value 3 Error 6 Garbage value 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are correct about an array?1. The array int num[26]; can store 26 elements.2. The expression num[1] designates the very first element in the array.3. It is necessary to initialize the array at the time of declaration.4. The declaration num[SIZE] is allowed if SIZE is a macro. 2, 4 None of these 1 2, 3 1, 4 2, 4 None of these 1 2, 3 1, 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of following program code?#include int main(void){ char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d", p); return 0;} 9 6 Error 5 None of these 9 6 Error 5 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming A preprocessor command need not start on the first column comes before the first executable statement need not start on a new line has # as the first character need not start on the first column comes before the first executable statement need not start on a new line has # as the first character ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program?#include#define int char void main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} Compiler Error sizeof(i)=1 sizeof(i)=2 None of These Compiler Error sizeof(i)=1 sizeof(i)=2 None of These 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? 8 No output Syntax error 6 Runtime error 8 No output Syntax error 6 Runtime error ANSWER DOWNLOAD EXAMIANS APP