C Tutorial/Statement/Statement

Материал из C\C++ эксперт
Перейти к: навигация, поиск

Each executable statement is terminated by ";"

#include <stdio.h>
main(){
  printf("Hi \n");
}
Hi

The statements are enclosed within a block marked by "{" and "}"

#include <stdio.h>
main(){
  printf("Hi \n");
  printf("Hello \n");
}
Hi
     Hello