If statements Exercices

Hello.

I have an exam tomorrow in "if statement" it's just a small Quiz and the teacher will ask us some nice Questions.

Please where can i find some Questions and answers concerning the if statement only?

I just Know if, else if and the variables:)

Thanks
closed account (S6k9GNh0)
if something is true, do something,
else, do something else.

fin.

He'll probably throw some crappy boolean that's hard to understand if it's true or not. Cool little facts to know: Anything that != 0, is true, if interpreted as a boolean. Anything with the nice && operator requires the two adjacent booleans to be true to pass. If the || operator is used, it requires one OR the other to be true. If I remember, 'or' and 'and' can also replace the && and || operators.
Last edited on
I would just review information on control statements and operators.
http://cplusplus.com/doc/tutorial/control/
http://cplusplus.com/doc/tutorial/operators/

Also search the web for "c++ quizzes" and search the resulting websites for relevant quizzes.
Topic archived. No new replies allowed.