If the following code fragment is executed in an otherwise complete and correct program, which expression will be executed? Why?
```
x = 0;
if (x = 12)
yes_statement;
else
no_statement;
```
a) The no_statement will be executed because x is not 12.
b) The statement has incorrect syntax so will not compile at all.
c) x=12 is illegal in the Boolean expression of an if statement.
d) The yes_statement will be executed.
d) The yes_statement will be executed.
Computer Science & Information Technology
You might also like to view...
Which type of memory is non-volatile?
A) DDR2 B) RAM C) SDRAM D) ROM
Computer Science & Information Technology
A ____ model serves as the essential basis for effective management of a software operation.
A. standardized framework B. hybrid framework C. custom framework D. non-standard
Computer Science & Information Technology