C Programming
What will be the output of the given program?#includevoid main(){int value1, value2=100, num=100;if(value1=value2%5) num=5;printf("%d %d %d", num, value1, value2);}

5 0 100
5 0 20
100 5 100
100 0 100
100 100 100

ANSWER DOWNLOAD EXAMIANS APP

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

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

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

ANSWER DOWNLOAD EXAMIANS APP