Basit Değişken Kullanımı Ve Yazdırma Örneği

Konu, 'C Dersleri' kısmında mustaphos tarafından paylaşıldı.

  1. mustaphos

    mustaphos MB Üyesi

    Kayıt:
    14 Eylül 2015
    Mesajlar:
    34
    Beğeniler:
    7
    Meslek:
    Öğrenci
    En İyi Cevap:
    0
    Değerlendiriler:
    +9 / 1 / -0
    Üniversite:
    Anadolu University
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    void main ()
    {
    char name[8] = "Mustaphos";/* Variable of name */
    char surname[6] = "Greek";/* Variable of surname */
    char student_id[12] = "11111111111";/* Variable of student ID number */

    printf("My name is : %s \n",name);/* My name was written by using name variable*/

    printf("My surname is : %s \n",surname);/* My surname was written by using surname variable*/

    printf("My student ID is : %s \n",student_id);/* My student ID was written by using student_id variable*/

    getch();
    }