C Tutorial/Preprocessor/Preprocessor

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

Preprocessing

You can use preprocessor to define constant and substitution.


#include <stdio.h>
#define const 5
main(){
  int i= 4;
  i = i * const;
  printf("%d \n", i);
}
20