Saved Bookmarks
| 1. |
What will be the output of this program?#includeusing namespace std;struct Shoe Type{ string name;double price;};int main(){ShoeType shoel, shoe2;shoe 1.name = “Adidas”;shoel.price = 9.99;cout << shoel.name << “#” <<shoel.price<<endl;shoe2 – shoel;shoe2.price = shoe2.price / 9;cout <<shoe2.name << “#”<< shoe2.price;return 0;(a) Adidas # 9.99; Adidas # 1.11(b) Adidas # 9.99; Adidas # 9.11(c) Adidas # 9.99; Adidas # 11.11(d) Adidas # 9.11; Adidas # 11.11 |
|
Answer» (a) Adidas # 9.99; Adidas # 1.11 |
|