A compound statement consists of several statements enclosed in a pair of second brackets. Such as-
{cin>>a;
sum=a+b;
cout<<sum;}
Each statement of a compound statement can be expression statement, compound statement and control statement.
No comments:
Post a Comment