We copied the value of shoe1 into shoe2 and divide the shoe2 value by 9, So this is the output. Output: $ g++ stu2.cpp $ a.out Adidas $ 9.99 Adidas $ 1.11
Question 5.
What is the output of this program?
1. #include 2. using namespace std; 3. struct Time { 4. int hours; 5. int minutes; 6. int seconds; 7. }; 8. int toSeconds(Time now); 9. int main() 10. { 11. Time t; 12. t.hours = 5; 13. t.minutes = 30; 14. t.seconds = 45; 15. cout
19845
20000
15000
19844
Explanation:-
Answer: Option A. -> 19845
In this program, we are just converting the given hours and minutes into seconds. Output: $ g++ stu1.cpp $ a.out Total seconds:19845