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 10
10 20 21 21
10 10 11 11
10 20 21 20

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the difference between a declaration and a definition of a variable?

Both can occur multiple times, but a declaration must occur first.
There is no difference between them.
A declaration occurs once, but a definition may occur many times.
Both can occur multiple times, but a definition must occur first.
A definition occurs once, but a declaration may occur many times.

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );}

There will be a compilation error reported.
The loop will run infinitely many times.
A run time error will be generated.
The program will not enter into the loop.
Prints the value of 0 one time only.

ANSWER DOWNLOAD EXAMIANS APP