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 30 -5 1 15 10 30 -5 1 15 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output given program?#includevoid main(){int i = -10;for(;i;printf("%d ", i++));} -10 to infinite Complier error -10 to -1 -10 to 0 -10 to infinite Complier error -10 to -1 -10 to 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Any C program Must contain at least one function. None of these Needs input data. Need not contain any function. Must contain at least one function. None of these Needs input data. Need not contain any function. ANSWER DOWNLOAD EXAMIANS APP
C Programming Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 I and II III and IV II and III I, II and III I, III and IV I and II III and IV II and III I, II and III I, III and IV ANSWER DOWNLOAD EXAMIANS APP
C Programming The statement int **a; is illegal is legal but meaningless None of these. is syntactically and semantically correct is illegal is legal but meaningless None of these. is syntactically and semantically correct 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);} 3 Garbage value 6 Error 3 Garbage value 6 Error ANSWER DOWNLOAD EXAMIANS APP