Solved

What Is the Output of the Following Program

Question 37

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions