What is compound statement in c plus plus program?

1 answer

Answer

1126040

2026-05-09 02:56

+ Follow

A compound statement is a code block. We typically use compound statements as the body of

another statement, such as a while statement:

while (i >= 0)

{

a[i] = x;

++x;

--i;

}

Note that all compound statements are surrounded by braces {}.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.