Skip to content

Instantly share code, notes, and snippets.

@mertyildiran
Created March 18, 2013 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mertyildiran/5191848 to your computer and use it in GitHub Desktop.
Save mertyildiran/5191848 to your computer and use it in GitHub Desktop.
Yukarıdaki kutuda yer alan C kodunda boş bırakılan yerleri doldurarak, komut satırından argüman olarak 2 tamsayı alıp, bu tamsayıların toplamlarını ekrana yazdıran bir "main" fonksiyonu hazırlayınız. Đpucu: "atoi" fonksiyonu, nümerik karakterleri ('6', '0' gibi) tamsayıya (6, 0 gibi) dönüştürmek için kullanılmaktadır. Bu fonksiyonun prototipinin…
#include <stdio.h>
int main(void) {
int n1, n2, n3;
n1 = 5;
n2 = 10;
n3 = n1 + n2;
printf("Toplam : %d\n", n3);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment