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);} 1, 2, 5 2, 1, 15 3, 2, 15 2, 3, 20 1, 2, 5 2, 1, 15 3, 2, 15 2, 3, 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) The increment should always be ++k . The commas should be semicolons. The variable k can’t be initialized. The variable must always be the letter i when using a for loop. There should be a semicolon at the end of the statement. The increment should always be ++k . The commas should be semicolons. The variable k can’t be initialized. The variable must always be the letter i when using a for loop. There should be a semicolon at the end of the statement. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 54554 54544 45545 45445 54554 54544 45545 45445 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is more appropriate for reading in a multi-word string? scanf() None of these gets() puts() printf() scanf() None of these gets() puts() printf() ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c[] = {2.8,3.4,4,6.7,5}; int j, *p=c, *q=c; for(j=0;j<5;j++){ printf(" %d ", *c); ++q; } for(j=0;j<5;j++){ printf(" %d ", *p); ++p; }} 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 2 2 2 2 2 2 3 4 6 5 2.8 2.8 2.8 2.8 2.8 2.8 3.4 4 2 3 4 6 5 2 3 4 6 5 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 2 2 2 2 2 2 3 4 6 5 2.8 2.8 2.8 2.8 2.8 2.8 3.4 4 2 3 4 6 5 2 3 4 6 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output given program?#includevoid main(){int i = -10;for(;i;printf("%d ", i++));} -10 to -1 Complier error -10 to 0 -10 to infinite -10 to -1 Complier error -10 to 0 -10 to infinite ANSWER DOWNLOAD EXAMIANS APP