Created
March 18, 2013 23:23
-
-
Save mertyildiran/5191901 to your computer and use it in GitHub Desktop.
a. Yukarıdaki C kodunu inceleyiniz ve derlemeden önce, printf fonksiyonlarının içerisinde yer alan karakter dizilerini koda bakarak okuyunuz. Daha sonra kodu derleyiniz, çalıştırınız ve ekran çıktısını gözleyiniz. goto yapısını kendi cümlelerinizle açıklayınız. goto: okunma sırası goto'ya geldiğinde goto target; şeklinde belirtilen hedefe goto'd…
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
#include <stdio.h> | |
int main(void) | |
{ | |
printf("C'de programlama yaparken "); | |
goto etiket1; | |
printf("goto deyiminden yararlanmak "); | |
printf("her ne kadar kolay olsa da, "); | |
etiket1: | |
printf("goto deyimini kullanmak "); | |
goto etiket2; | |
printf("yerine while, for dongulerini kullanmak, "); | |
printf("profesyonelce programlama yapmak adina "); | |
etiket2: | |
printf("akillica bir secimdir."); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment