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 30 15 10 1 -5 30 15 10 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following code:void main(){ int a[5] = {6,8,3,9,0}, i=0; if(i != 0) { break; printf("%d", a[i]); } else printf("%d", a[i++]);}What is the output of the above program? Syntax error No output Runtime error 8 6 Syntax error No output Runtime error 8 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i); Infinite loop 0123456789 10 0 Syntax error Infinite loop 0123456789 10 0 Syntax error ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program. void main() { int i=01289; printf("%d", i); } 713 0289 Syntax error 0713 1289 713 0289 Syntax error 0713 1289 ANSWER DOWNLOAD EXAMIANS APP
C Programming Pick the correct statements.I. The body of a function should have only one return statement.II. The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. II and III III and IV II and IV I and II I and III II and III III and IV II and IV I and II I and III ANSWER DOWNLOAD EXAMIANS APP
C Programming For 16-bit compiler allowable range for integer constants is ________? -32668 to 32667 -3.4e38 to 3.4e38 -32767 to 32768 -32768 to 32767 -32668 to 32667 -3.4e38 to 3.4e38 -32767 to 32768 -32768 to 32767 ANSWER DOWNLOAD EXAMIANS APP