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 15 30 1 10 -5 15 30 1 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the best answer.Prior to using a pointer variable It should be initialized. None of these. It should be declared. It should be both declared and initialized. It should be initialized. None of these. It should be declared. It should be both declared and initialized. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which command is used to skip the rest of a loop and carry on from the top of the loop again? break resume skip continue None of these break resume skip continue None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming The function sprintf() works like printf(), but operates on .......... stderr Data file string no such function in 'C'. stdin stderr Data file string no such function in 'C'. stdin ANSWER DOWNLOAD EXAMIANS APP
C Programming #includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);} 10, 10 11, 10 10, 11 11, 11 10, 10 11, 10 10, 11 11, 11 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 45445 54554 54544 45545 45445 54554 54544 45545 ANSWER DOWNLOAD EXAMIANS APP