×
×

# What is the output of the following code? int x = 50, y = 60, z = 70; int *ptr =

ISBN: 9780133769395 311

## Solution for problem 9.4 Chapter 9

Starting Out with C++ from Control Structures to Objects | 8th Edition

• Textbook Solutions
• 2901 Step-by-step solutions solved by professors and subject experts
• Get 24/7 help from StudySoup virtual teaching assistants

Starting Out with C++ from Control Structures to Objects | 8th Edition

4 5 1 405 Reviews
22
0
Problem 9.4

What is the output of the following code? int x = 50, y = 60, z = 70; int *ptr = nullptr; cout << x << " " << y << " " << z << endl; ptr = &x;*ptr *= 10; ptr = &y; *ptr *= 5; ptr = &z; *ptr *= 2; cout << x << " " << y << " " << z << endl;

Step-by-Step Solution:
Step 1 of 3

Evolution and the origin of life  How old is earth-5+ billion years  What is the approximate age of the first life forms-3.5B  What is speculated as to their "type", size and form-prokaryotic  Want was the earths early atmosphere like-rich in methane gas  What happened to change the gas makeup of the earth's atmosphere-photosynthetic "plants" evolved, releasing...

Step 2 of 3

Step 3 of 3

#### Related chapters

Unlock Textbook Solution