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

mustaphos

MB Üyesi
Kayıt
14 Eylül 2015
Mesajlar
34
Tepkiler
7
Yaş
24
Meslek
Öğrenci
Üniv
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();
}
 
Yukarı Alt