Skip to content

Instantly share code, notes, and snippets.

@tolpp
Last active August 29, 2015 14:15
Show Gist options
  • Save tolpp/a0f2e92149811cde05b7 to your computer and use it in GitHub Desktop.
Save tolpp/a0f2e92149811cde05b7 to your computer and use it in GitHub Desktop.
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