Menu

4 Following Program Segment Display Int Funny 1 Serious Funny 1 Funny Serious 1 Else Funny Q43897417

4) What will the following program segment display? int funny = 1, serious; if (funny != 1) { funny = serious = 1; else if (f4) What will the following program segment display? int funny = 1, serious; if (funny != 1) { funny = serious = 1; else if (funny == 2) { funny = serious = 3; else { funny = serious = 5; cout << funny << ” ” << serious << endl; Show transcribed image text 4) What will the following program segment display? int funny = 1, serious; if (funny != 1) { funny = serious = 1; else if (funny == 2) { funny = serious = 3; else { funny = serious = 5; cout

Expert Answer


Answer to 4) What will the following program segment display? int funny = 1, serious; if (funny != 1) { funny = serious = 1; else …

OR