본문 바로가기

Variables, types, and arithmetic

English

Every value has a type

  • In C, every variable has a type that says what kind of value it holds.
  • The three you use most: int (a whole number), double (a number with a decimal point), and char (a single character).
  • You must give the type when you create the variable: int n = 5; or double pi = 3.14;.

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP