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 -5 1 15 30 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i = -1; +i; printf("i = %d, +i = %d", i, +i);} i = 1, +i = 1 i = -1, +i = 1 None of These i = -1, +i = -1 i = 1, +i = 1 i = -1, +i = 1 None of These i = -1, +i = -1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Who is father of C Language? James F. Codd Dennis Ritchie Gosling Bjarne Stroustrup Dr. James F. Codd Dennis Ritchie Gosling Bjarne Stroustrup Dr. 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. 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
C Programming Find the output of the following program.#define INC(X) X++void main(){ int x=4; printf("%d", INC(x++));} Error 5 6 4 Error 5 6 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#include#define prod(a,b) a*bvoid main(){ int x=3,y=4; printf("%d", prod(x+2,y-1));} None of these 12 10 11 15 None of these 12 10 11 15 ANSWER DOWNLOAD EXAMIANS APP