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);} 3 Garbage value 6 Error 3 Garbage value 6 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 10 15 30 1 -5 10 15 30 1 -5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which is the only function all C programs must contain? start() getch() system() main() printf() start() getch() system() main() printf() ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is not a correct variable type? float int char real double float int char real double ANSWER DOWNLOAD EXAMIANS APP
C Programming What number would be shown on the screen after the following statements of C are executed?char ch; int i; ch = 'G'; i = ch-'A';printf("%d", i); 8 6 7 5 9 8 6 7 5 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char not; not = !2; printf("%d", not);} Garbage Value None of These 0 2 Garbage Value None of These 0 2 ANSWER DOWNLOAD EXAMIANS APP