C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} -2 1 2 Error -2 1 2 Error ANSWER DOWNLOAD EXAMIANS APP
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 -5 1 10 30 15 -5 1 10 30 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program code?#include#define a 10void main(){ #define a 50 printf("%d", a);} 10 50 Compiler Error None of These 10 50 Compiler Error None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#include#includevoid main(){ char str1[20] = "Hello", str2[20] = " World"; printf("%s", strcpy(str2, strcat(str1, str2)));} Hello Hello World WorldHello None of these World Hello Hello World WorldHello None of these World ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here} 1 None of These Garbage Value 10 1 None of These Garbage Value 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} 5 4 3 2 1 None of these Compilation Error Infinite Loop 5 5 5 5 5 5 4 3 2 1 None of these Compilation Error Infinite Loop 5 5 5 5 5 ANSWER DOWNLOAD EXAMIANS APP