What is the output of the following program.?
```
#include
struct ShoeType { char style; double price; }; int main() { ShoeType shoe1, shoe2; shoe1.style = 'P'; shoe1.price = 98.98; cout << shoe1.style << " $" << shoe1.price << endl;
shoe2 = shoe1;
//Put shoe2 on sale!
shoe2.price = shoe1.price/2;
cout << shoe2.style << " $" << shoe2.price << endl;
}
```
P $98.98
P $49.49
Structure variables are used as variables in an expression just like any other variable.
You might also like to view...
The ___________ command from the JDK compiles a Java program.
Fill in the blank(s) with the appropriate word(s).
A range reference, such as A12:G30, can be part of a(n) argument. _________________________
Answer the following statement true (T) or false (F)
Which of the following is not an available feature in the PowerPoint 2010 Web App program?
a. You can run your slide presentation with high fidelity. b. PowerPoint Web App saves your work automatically. c. You can perform more advanced formatting either in the PowerPoint Web App or in PowerPoint Office 2010. d. You can make last-minute changes to your presentation by using PowerPoint Web App.
When an application contains just one version of a method, you can call the method using a(n) ____ of the correct data type.
A. parameter B. scope C. output D. constructor