Advertisements
Advertisements
Question
A compound statement can be stated as:
Options
p = in.nextInt(); q = in.nextInt();
m = ++a; n = --b;
if (a > b) {a++; b--;)
None
MCQ
Solution
if (a > b)
{a++; b--;)
Explanation:
Two or more statements can be combined by enclosing them in opening and closing curly braces. A compound statement refers to a collection of statements.
shaalaa.com
Is there an error in this question or solution?