Contents


On-line Guides
All Guides
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems

How To Guides
Xen Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions

 

 

The GNU C Programming Tutorial - A word about goto

Node:A word about goto, Next:, Previous:Character conversion table, Up:Top



A word about goto

This word is redundant in C and encourages poor programming style. For this reason it has been ignored in this book. For completeness, and for those who insist on using it (may their programs recover gracefully) the form of the goto statement is as follows:

goto label;

label is an identifier which occurs somewhere else in the given function and is defined as a label by using the colon:

label : printf ("Ugh!  You used a goto!");

 
 
  Published under free license. Design by Interspire