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

10
15
30
1
-5

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the difference between a declaration and a definition of a variable?

A declaration occurs once, but a definition may occur many times.
Both can occur multiple times, but a declaration must occur first.
Both can occur multiple times, but a definition must occur first.
There is no difference between them.
A definition occurs once, but a declaration may occur many times.

ANSWER DOWNLOAD EXAMIANS APP