www.thecareerplus.com
The CareerPlus
Home Technical Resources Programming Expressions
Thursday 09th September 2010
 
 
Can goto be used to jump across functions?

Discuss it!          


No!

This wont work


main()
{
  int i=1;
  while (i<=5)
  {
    printf("%d",i);
    if (i>2)
        goto here;
    i++;
  }
}

fun()
{
here:
  printf("PP");
}


Discuss it!          

CrackTheIntervew.NET
Advertisement
 
Top! Top!