Short Answer
What is the output of the following program.?
#include <iostream>
using namespace std;
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;
}
Correct Answer:

Verified
Correct Answer:
Verified
Q27: Structure definitions are usually global (defined outside
Q28: A data type is a collection of
Q29: There is no access to private members
Q30: Given the ShoeType structure type definition.Write a
Q31: The concept of class is central to
Q32: The scope resolution operator can be used
Q33: Write a definition for a structure type
Q34: The following definition of the structure variables
Q35: Consider these hierarchical structures.<br>struct Date<br>{<br>int year;<br>//members<br>};<br>struct Person<br>{<br>Date
Q36: Given the ShoeType structure type definition,write a