Title: What will the following program segment display?int funny = 7, serious = 15;funny = serious % 2;if ... Post by: pagnor on Sep 3, 2017 What will the following program segment display?
int funny = 7, serious = 15; funny = serious % 2; if (funny != 1) { funny = 0; serious = 0; } else if (funny == 2) { funny = 10; serious = 10; } else { funny = 1; serious = 1; } cout << funny << " " << serious << endl; A) 1 1 B) 10 10 C) 0 0 D) 7 15 E) None of these Title: Re: What will the following program segment display?int funny = 7, serious = 15;funny = serious % ... Post by: jecko on Sep 3, 2017 Content hidden
Title: Re: What will the following program segment display?int funny = 7, serious = 15;funny = serious % 2;if ... Post by: pagnor on Dec 23, 2017 This website is legit, thank you!
|