Question: What is the output of the following program? void func1() { cout < < Welcome to ; } void func2() { cout < < COSC
- What is the output of the following program?
void func1() { cout << "Welcome to "; }
void func2() { cout << "COSC 1430"; }
int main() {
func1(func2());
return 0;
}
| Welcome to COSC 1430 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The program will not compile | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| COSC 1430 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Welcome to
|
- It is not possible for a function to return a structure variable
True
False
- What is the output of the following code?
int sum = 14; if ( sum < 20 ) cout << "Under "; else cout << "Over "; cout << "the limit.";
| Over the limit. | ||
| Under | ||
| Over | ||
| Under the limit |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
