Sunday, October 30, 2011

C programing The Loop Control Structure Summary:

(a)  When we need to choose one among number of alternatives, a switch statement is used.
(b)  The  switch  keyword is followed by an integer or an expression that evaluates to an integer.  
(c)  The  case  keyword is followed by an integer or a character constant. 
(d)  The control falls through all the cases unless the break statement is given.
(e)  The usage of the goto keyword should be avoided as it usually violets the normal flow of execution.

No comments:

Post a Comment