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
15
30
10

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );}

Prints the value of 0 one time only.
The program will not enter into the loop.
There will be a compilation error reported.
A run time error will be generated.
The loop will run infinitely many times.

ANSWER DOWNLOAD EXAMIANS APP