int[] dalil_sani = {15, 57, 28, 7};
if (dalil_sani[0] == 15)
{
int[] takdil_syams = {12, 35, 1};
}
else if (dalil_sani[0] == 20)
{
int[] takdil_syams = {32, 54, 6};
}
Console.WriteLine("I want to call it from Here ."); // I want to call takdil_syams from here..
Accessing variable inside if from outside if
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Tapan PatelRank #614 · 3.9K reputationPosted Aug 10, 2016, 10:58 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Aug 10, 2016, 6:11 PM EDT