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 10 15 30 1 -5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 54544 55445 45545 54554 54544 55445 45545 54554 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which operator has the lowest priority? + ++ && || % + ++ && || % ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.#define INC(X) X++void main(){ int x=4; printf("%d", INC(x++));} Error 4 5 6 Error 4 5 6 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. 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
C Programming What will be the correct output of the following program?#includevoid main(){ char str[] = "C EXAMINATION", rev[17]; int i = strlen(str), j=0; for( ; i>=0; rev[j++] = str[i--]) rev[j] = str[j] ; puts(rev);} C NOITANIMAXE No output at all. Syntax error NOITANIMAXE C C NOITANIMAXE No output at all. Syntax error NOITANIMAXE C ANSWER DOWNLOAD EXAMIANS APP