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 15 30 1 10 -5 15 30 1 10 -5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50} 10..50 Error 0 10..10 10..50 Error 0 10..10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which one of the following is not a valid identifier? exam_veda _examians examians1 1examians exam_veda _examians examians1 1examians ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?#includevoid main(){ int s=0; while(s++<10) { if(s<4 && s<9) continue; printf("%dt", s); }} 1 2 3 10 4 5 6 7 8 9 10 4 5 6 7 8 9 None of these 1 2 3 4 5 6 7 8 9 1 2 3 10 4 5 6 7 8 9 10 4 5 6 7 8 9 None of these 1 2 3 4 5 6 7 8 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of following is not a valid name for a C variable? Both A and B Exam veda Exam_veda Examians None of these Both A and B Exam veda Exam_veda Examians None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} Error 0 0 0 1 1 1 garbage values Error 0 0 0 1 1 1 garbage values ANSWER DOWNLOAD EXAMIANS APP