answersLogoWhite

0

used in defining goto statement in C++.

tells the program which part of the code it should skip to.

example:

void main()

{

x: // This is the label

cout<<"\n Wikipedia rocks" ;

cout<<"\n Google rocks" ;

goto x; // starts executing from x:

getch();

}

// Warning!! this loop will be infinite, plz do not run it, its only for example sake!!!

User Avatar

Wiki User

16y ago

What else can I help you with?