Answer:
cout<<"User Age is ="<<userAge<<endl;
Explanation:
#include<iostream>
using namespace std;
int main()
{
int userAge;
cin >> userAge; // Program will be tested with values: 15, 40.
cout<<"User Age is ="<<userAge<<endl;
return 0;
}
Answer:
b. TRUE
Explanation:
Whenever they are passed as parameters to a function, the IO classes istream and ostream must be passed using a pass-by-reference parameter passing scheme.
This is because , assuming a pass by value semantics would require us to copy the value of the istream or ostream object which would be meaningless. In fact these objects don't even have a copy constructor at all. So such objects are always passed by reference.
We can assume that the acidity of the river has a pH value of at least 6 or greater. We know this because given that clams die if acidity is less than 6 and frogs die when acidity is less than 4, if they both survive, acidity must not be lower than 6 pH