Home > Articles > Programming > C#

Like this article? We recommend

Like this article? We recommend

Labels

Labels are program elements that simply identify a location in a program. Their only practical use is to support the goto statement. The goto statement allows program control to jump to the place where a label is defined. A label is any valid identifier followed by a colon (not a semicolon). Here are two examples:

loop:    // a label named "loop"
jumphere:  // a label named "jumphere"

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.