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 -5 1 30 10 15 -5 1 30 10 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of following is not a valid name for a C variable? None of these Exam_veda Exam veda Examians Both A and B None of these Exam_veda Exam veda Examians Both A and B 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); 9 8 5 6 7 9 8 5 6 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program. void main() { int i=01289; printf("%d", i); } 713 0289 Syntax error 1289 0713 713 0289 Syntax error 1289 0713 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which command is used to skip the rest of a loop and carry on from the top of the loop again? break resume None of these skip continue break resume None of these skip continue ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?void main(){ int a, b, c, d; a = 3; b = 5; c = a, b; d = (a, b); printf("c=%d d=%d", c, d);} c=3 d=5 c=3 d=3 c=5 d=3 c=5 d=5 c=3 d=5 c=3 d=3 c=5 d=3 c=5 d=5 ANSWER DOWNLOAD EXAMIANS APP