The function’s prototype, along with pre- and postcondition comments should provide a programmer with all the information necessary to call the function successfully.
查看答案
Postconditions are any set of conditions required by a function to be true if it is to operate correctly.
The parentheses in a return statement are required.
The output of the following code is ____. count = 1; /* initialize count */ while (count <= 10) { printf("%d ",count); count++; /* increment count */ }
A. 1 1 1 1 1 1 1 1 …
B. 1 2 3 4 5 6 7 8 9
C. 1 2 3 4 5 6 7 8 9 10
D. 1 2 3 4 5 6 7 8 9 10 11
The break statement violates pure structured programming principles because it provides a second nonstandard exit from a loop.