{}
를 block 혹은 compound statement라고 부른다.
#include <stdio.h>
int main()
{
int i = 0;
while (i < 10)
//an example of compound statements
//(block)
{
i++;
printf("%d\n", i);
}
return 0;
}
이를 순서도로 나타내보면,
위와 같다.