Question: (C program) why is the yes_statement executed? If the following code fragment is executed in an otherwise complete and correct program, which expression will be
(C program) why is the yes_statement executed?

If the following code fragment is executed in an otherwise complete and correct program, which expression will be executed? int x = 0; if (x = 12) yes_statement; else no_statement; The no statement will be executed because x is not 12 You Answered x=12 is illegal in the Boolean expression of an if statement. Correct Answer The yes statement will be executed. The statement has incorrect syntax so will not compile at all
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
