Last active
March 28, 2017 09:00
-
-
Save keremistan/f3d4db81613e01e9cc6864e5109b08fa to your computer and use it in GitHub Desktop.
Yapılara yönelik ilk örneğimiz...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Video dersi icin : https://www.youtube.com/watch?v=OXlU6ygdjMY | |
#include <stdio.h> | |
#include <string.h> | |
struct calisanBilgileri{ | |
char isim[15]; | |
int yas; | |
int aylikMaas; | |
}kisiProfili={ | |
.aylikMaas = 1800 | |
}; | |
int main(void){ | |
kisiProfili.yas = 30; | |
printf("yasimiz %d ve maasimiz ise %d", kisiProfili.yas, kisiProfili.aylikMaas); | |
// struct calisanBilgileri hasanStructi; | |
// hasanStructi.yas = 25; | |
// hasanStructi.aylikMaas = 6000; | |
// strncpy(hasanStructi.isim, "Hasan", strlen("Hasan")); | |
// | |
// printf("Hasanin ismi %s\nmaasi:%d\nyasi:%d\n", hasanStructi.isim, hasanStructi.aylikMaas, hasanStructi.yas); | |
// | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment