default

continue

continue is used to bypass portions of code in a loop and forces the conditional expression to be evaluated. For example, the following while loop reads characters from the keyboard until an s is typed:

while(ch = getchar()) {   if(ch != 's') continue;  // read another char    process(ch); }

The call to process( ) will not occur until ch contains the character s.




C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net