Question: Consider carefully the program fragment below: if (age < 13 && age > 19) cout < < You are not a teenager ; Which of

Consider carefully the program fragment below:

if (age < 13 && age > 19) cout << "You are not a teenager ";

Which of the following statements is/are true about it?

It will never print "You are not a teenager "; there is a logic operator error
It will only print "You are not a teenager " if age is not between 13 and 19 (inclusive)
It does not cover the ages of 13 and 19, but it should
The statement has a syntax error.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!