C Programming
What will be the following code's output if choice = 'R'?switch(choice){ case 'R' : printf("RED"); case 'W' : printf("WHITE"); case 'B' : printf("BLUE"); default : printf("ERROR");break;}

RED WHITE BLUE
RED WHITE BLUE ERROR
RED ERROR
ERROR
RED

ANSWER DOWNLOAD EXAMIANS APP

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

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

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++)

There should be a semicolon at the end of the statement.
The commas should be semicolons.
The increment should always be ++k .
The variable must always be the letter i when using a for loop.
The variable k can’t be initialized.

ANSWER DOWNLOAD EXAMIANS APP