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 30 10 15 1 -5 30 10 15 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:#include#define clrscr() 100void main(){ clrscr(); printf("%dn", clrscr());} Error 0 1 100 Error 0 1 100 ANSWER DOWNLOAD EXAMIANS APP
C Programming A C variable cannot start with An alphabet Both of the above A special symbol other than underscore A number An alphabet Both of the above A special symbol other than underscore A number ANSWER DOWNLOAD EXAMIANS APP
C Programming The function scanf() returns ......... 0 The number of successful read input values. ASCII value of the input read. The actual values read for each argument. 1 0 The number of successful read input values. ASCII value of the input read. The actual values read for each argument. 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ? rem = fmod(3.14, 2.1); rem = 3.14 % 2.1; Remainder cannot be obtain in floating point division. rem = modf(3.14, 2.1); rem = fmod(3.14, 2.1); rem = 3.14 % 2.1; Remainder cannot be obtain in floating point division. rem = modf(3.14, 2.1); ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){int value1, value2=100, num=100;if(value1=value2%5) num=5;printf("%d %d %d", num, value1, value2);} 5 0 100 100 100 100 5 0 20 100 5 100 100 0 100 5 0 100 100 100 100 5 0 20 100 5 100 100 0 100 ANSWER DOWNLOAD EXAMIANS APP