May 2021 4 165 Report
 Why is the following condition good practice?  if( 5 == num)?

This is in reference to C++ programming.

Update:

I really don't understand it either, its a question on a final exam for a Programming I class in C++ and that is the exact wording of it, copied and pasted here. My feeling is that it has something to do with pre-testing conditions on a some kind of loop. Maybe a For, If, or While pre or post condition check. Must be some programmers out there that can give me a clue here, a little nudge in the right direction would even be appreciated. Thanks.

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 1QUIZZ.COM - All rights reserved.