1 / 7

Bölüm 5

Bölüm 5. Basit Veri Türleri. Basit Veri Türleri. Sayısal Veri Türleri Tamsayı veri türleri Kayan noktalı veri türleri Karakter veri türü Numaralandırılmış (enumerated) veri türü. Sayısal Veri Türleri. Tamsayı Bölme Type Casting. Karakter Veri Türü ve Kullanımı. char c = ‘Z’; ...

baka
Download Presentation

Bölüm 5

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. Bölüm 5 Basit Veri Türleri

  2. Basit Veri Türleri • Sayısal Veri Türleri • Tamsayı veri türleri • Kayan noktalı veri türleri • Karakter veri türü • Numaralandırılmış (enumerated) veri türü

  3. Sayısal Veri Türleri • Tamsayı Bölme • Type Casting

  4. Karakter Veri Türü ve Kullanımı char c = ‘Z’; ... printf(“Karakter: %c, ASCII Degeri: %d \n”, c, c); ... for (k = 65; k <= (int) c; k++) ...

  5. Numaralandırılmış Veri Türü Örneği enum { pazartesi, sali, carsamba, persembe, cuma, cumartesi, pazar }; ... int gun; ... gun = carsamba; /* gun = 2; */

  6. Yeni Tür Tanımlama Örneği-1 typedef unsigned int uint; int main (void) { uint deneme; deneme = 12345; printf("%d \n", deneme); ... }

  7. Yeni Tür Tanımlama Örneği-2 typedef enum { pazartesi, sali, carsamba, persembe, cuma } calismaGunleri; int main (void) { calismaGunleri gun; gun = pazartesi; ... }

More Related