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 -5 1 30 10 15 -5 1 30 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which is the only function all C programs must contain? printf() start() system() getch() main() printf() start() system() getch() main() ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output if you will compile and execute the following c code?#include#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);} 6 5 0 Compiler Error 7 6 5 0 Compiler Error 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following operator takes only integer operands? None of these % / * + None of these % / * + ANSWER DOWNLOAD EXAMIANS APP
C Programming int a[5] = {1,2,3}What is the value of a[4]? 1 Garbage Value 0 3 2 1 Garbage Value 0 3 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of this program on an implementation where int occupies 2 bytes?#include void main(){ int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j);} i=5 j=2 i=3 j=2 the behavior is undefined i=4 j=2 i=5 j=2 i=3 j=2 the behavior is undefined i=4 j=2 ANSWER DOWNLOAD EXAMIANS APP