C Programming

   »   

Computer Education, Training & Tutorial Resources - ComputerEducationWorld.com
Home » Free Educations » Free Programming Training » C Programming »

A goto statement is allowed to jump within the scope of a variable length array. ”goto ” statement  permits unstructured jumps.The goto statement branches unconditionally to a statement label or block label. The label must be unique within its scope.

Specifically, a  “goto” statement cannot branch into an IF statement, CASE statement, LOOP statement, or sub-block. (more…)


• • •
 

break
We have already met break in the discussion of the switch statement. It is used to exit from a loop or a switch, control passing to the first statement beyond the loop or a switch. The break command will exit the most immediately surrounding loop regardless of what the conditions of the loop are. Break is useful if we want to exit a loop under special circumstances.break can be used to force an early exit from the loop, or to implement a loop with a test to exit in the middle of the loop body. (more…)


• • •
 

The C Switch case statements are a substitute for long if statements that compare a variable to several values. These values can be int ,char or any other types which allows multiple choice of a selection of items at one level of a conditional where it is a far neater way of writing multiple if statements: (more…)


• • •
 

ternary operator is used where if statement is simple.If the expression 1 is true it expression2 execute otherwise expression 3 will execute.
expression1 ? expression2:  expression3

expression1 : Indicates condition for ternary operator.if this is true then expression2 will execute else expression3 will execute. (more…)


• • •
 



captcha PHP Script Free PHP captcha script free php
Website Design by WebWalas.com