C Programming What will be the output of the program ?#includevoid main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 3, 2, 15 1, 2, 5 2, 1, 15 2, 3, 20 3, 2, 15 1, 2, 5 2, 1, 15 2, 3, 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming C preprocessor Acts before compilation Takes care of macros Takes care of include files All of these Takes care of conditional compilation Acts before compilation Takes care of macros Takes care of include files All of these Takes care of conditional compilation ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=-1, j=-1, k=0, l=2, m; m = i++ && j++ && k++ || l++; printf("%d %d %d %d %d", i, j, k, l, m);} 0 0 1 3 1 0 0 1 3 0 0 0 0 2 1 0 0 1 2 0 0 0 1 3 1 0 0 1 3 0 0 0 0 2 1 0 0 1 2 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here} Garbage Value 10 None of These 1 Garbage Value 10 None of These 1 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 30 10 -5 1 15 30 10 -5 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming A C variable cannot start with An alphabet A number A special symbol other than underscore Both of the above An alphabet A number A special symbol other than underscore Both of the above ANSWER DOWNLOAD EXAMIANS APP