Last active
August 29, 2015 14:15
-
-
Save tolpp/a0f2e92149811cde05b7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
static void Main(string[] args) | |
{ | |
int a; //değişkene bir ilk değer atamak zorunda değilim, çünkü out parametreli bir fonksiyona gönderdim | |
//Console.WriteLine(a); --> bu satır derleyici tarafından hatalı kabul edilir. Çünkü değişkene değer atayan f fonksiyonu çağırılmamıştır | |
f(out a); | |
Console.WriteLine(a); | |
Console.ReadLine(); | |
} | |
private static void f(out int sayi) | |
{ | |
sayi = 20; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment