C Programming
What will be the output of the given program?#includevoid main(){ int i=10; printf("i=%d", i); { int i=20; printf("i=%d", i); i++; printf("i=%d", i); } printf("i=%d", i);}

10 20 21 20
10 20 21 21
10 20 21 10
10 10 11 11

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 commas should be semicolons.
The variable must always be the letter i when using a for loop.
The variable k can’t be initialized.
The increment should always be ++k .
There should be a semicolon at the end of the statement.

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Use of functions

Helps to avoid repeating a set of statements many times.
Enhances the logical clarity of the program.
Makes the debugging task easier.
All of these
Helps to avoid repeated programming across programs.

ANSWER DOWNLOAD EXAMIANS APP