Skip to content · ⁨Lompat ke konten⁩

Variables, types, and arithmetic · ⁨Variabel, tipe, dan aritmatika⁩

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;.
Bahasa Indonesia

Setiap nilai memiliki type

  • Di C, setiap variabel memiliki type yang menunjukkan jenis nilai apa yang dimilikinya.
  • Tiga yang paling sering digunakan: int (bilangan bulat), double (bilangan dengan desimal), dan char (satu karakter).
  • Anda harus memberikan type saat membuat variabel: int n = 5; atau double pi = 3.14;.

Handout · ⁨Lembar Kerja⁩

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP