Question: What is the output for the following C++ program: #include using namespace std; int main() { const int number=5; if (number> 10 && number
What is the output for the following C++ program: #include using namespace std; int main() { const int number=5; if (number> 10 && number 19) { cout < < "R2" < < number; } else { cout < < "R3";} cout < < "R4"; return 0; }
Step by Step Solution
3.45 Rating (168 Votes )
There are 3 Steps involved in it
Introduction The given C program initializes a constant integer variable number with the value 5 Thr... View full answer
Get step-by-step solutions from verified subject matter experts
