What is the output for the call DisplayTime(2, 24, 65)? void DisplayTime(int hours, int minutes, int seconds) {   // Parameter error checking   if ((hours < 1) || (hours > 12)) {      cout << "Invalid hours" << endl;      hours = 1;   }   if ((minutes < 1) || (minutes > 60)) {      cout << "Invalid minutes" << endl;      minutes = 1;   }    if ((seconds < 1) || (seconds > 60)) {      cout << "Invalid seconds" << endl;      seconds = 1;   }   cout << hours << ":" << minutes << ":" << seconds; }单项选择题

A

2:24:1

B

Invalid seconds 2:24:65

C

Invalid seconds 2:24:1

D

2:24:65

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!