1 / 8

DATA TYPE

DATA TYPE. Identifier (Nama yang digunakan dlm Pascal). Terdiri dari gabungan huruf dan angka dengan karakter pertama harus berupa huruf Tidak boleh mengandung BLANK Tidak boleh menggunakan simbol-simbol khusus kecuali garis bawah

Télécharger la présentation

DATA TYPE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. DATA TYPE

  2. Identifier (Nama yang digunakan dlm Pascal) • Terdiri dari gabungan huruf dan angka dengan karakter pertama harus berupa huruf • Tidak boleh mengandung BLANK • Tidak boleh menggunakan simbol-simbol khusus kecuali garis bawah • Panjangnya bebas, tetapi hanya 63 karakter pertama yang dianggap signifikan P P O 6Nilai P3K NamaMahasiswa P O O No_Mhs A B A&B

  3. Ordinal Integer Sederhana Boolean Real String Character Terbilang Terstruktur Larik Sub Jangkauan Tipe Data Himpunan Pointer Menyimpan data yang berupa untaian karakter Mendeklarasikan kumpulan variabel yang bertipe sama. Berdimensi 1, 2 atau 3 Data yang bernilai TRUE atau FALSE Prosedural Object

  4. Tipe Data Integer

  5. Tipe Data Real Tanda titik tanpa eksponen X := 123.4; Menuliskan nilai Menggunakan eksponen X := 1.234E+2

  6. Tipe Character • Menyimpan data alfanumerik ‘A’-’Z’, ‘@’, ’1’, ’9’ • Menuliskan karakter dalam petik tunggal  ch := ‘A’; • Menuliskan tanda # + kode ASCII ch := #65; • Mengkonversi nomor ASCII ke karakter  ch:= chr(65); • Mengkonversi karakter ke nomor ASCII  ch := ord(‘A’);

  7. := Assignment Arithmetic + , - Binary +, - , /, *, DIV, MOD Operator Boolean Not, AND, OR, XOR Logical Not, AND, OR, XOR, =, >, <, <>, >=, <= Relational

  8. E = mc2 F = 9/5 C + 32 C = 5/9 F - 32 LL = pi x r2 KL = 2 pi r

More Related