Skip to content · ⁨コンテンツへスキップ⁩
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;.
日本語

全ての値には型がある

  • C では、すべての変数にはその値の种类を示す型があります。
  • 最もよく使う3つ:int (整数)、double (小数点を含む数)、char (単一文字)。
  • 変数を作成する際に型を指定する必要があります:int n = 5; または double pi = 3.14;。

Handout · ⁨プリント⁩

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP