Answers for "goto return c#"

C#
3

goto c#

void main() { //example code and possible usage
  int i = 1
  if(i == 1)
    goto a;
  else
    goto b;   
  //
  a:
  Console.Writeline("i is 1"); // example will write this
  return;  
  b:
  Console.WriteLine("i is not 1");
  return;  
}
Posted by: Guest on April-12-2021

C# Answers by Framework

Browse Popular Code Answers by Language