2
Answers

accessing variable inside if from outside if

int[] dalil_sani = {15, 57, 28, 7};<br /> if (dalil_sani[0] == 15)<br /> {<br /> int[] takdil_syams = {12, 35, 1};<br /> }<br /> else if (dalil_sani[0] == 20)<br /> {<br /> int[] takdil_syams = {32, 54, 6};<br /> }<br /> Console.WriteLine("I want to call it from Here ."); // I want to call takdil_syams from here..
Answers (2)