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 10 30 15 -5 1 10 30 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ int const *p=5; printf("%d", ++(*p));} Garbage Value 5 Compiler Error 6 Garbage Value 5 Compiler Error 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p="hi friends", *p1; p1=p; while(*p!='\0') ++*p++; printf("%s", p1);} hj grjeodt ij!gsjfoet None of These hi friends hj grjeodt ij!gsjfoet None of These hi friends ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? It is a unary operator All of these It associates from the right It cannot be applied to an expression The operand can come before or after the operator It is a unary operator All of these It associates from the right It cannot be applied to an expression The operand can come before or after the operator ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#include#define square(x) x*x void main(){ int i; i = 64/square(4); printf("%d", i); } 16 64 4 None of These 16 64 4 None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 45545 55445 54544 54554 45545 55445 54544 54554 ANSWER DOWNLOAD EXAMIANS APP