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 15 30 10 -5 1 15 30 10 -5 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Segmentation fault/runtime crash Compiler time error 10 Undefined behavior Segmentation fault/runtime crash Compiler time error 10 Undefined behavior ANSWER DOWNLOAD EXAMIANS APP
C Programming Use of functions Makes the debugging task easier. Helps to avoid repeating a set of statements many times. Enhances the logical clarity of the program. All of these Helps to avoid repeated programming across programs. Makes the debugging task easier. Helps to avoid repeating a set of statements many times. Enhances the logical clarity of the program. All of these Helps to avoid repeated programming across programs. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after execution of the following program code?main(){ printf("\\nab"); printf("\\bsi"); printf("\\rha"); } None of these absiha hai haasi asiha None of these absiha hai haasi asiha ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:main(){ int i = abc(10); printf("%d", --i);}int abc(int i){ return(i++);} None of these. 11 9 10 None of these. 11 9 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of following program code?#include int main(void){ char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d", p); return 0;} 6 5 9 Error None of these 6 5 9 Error None of these ANSWER DOWNLOAD EXAMIANS APP