Basic Parts of C Programming
Basic Parts of C Programming
HEADER FILES
main()
{
….statement
RESERVED WORD
5. No special symbols other than underscore are allowed in the variable name.
GLOBAL VS LOCAL VARIABLE
DATA TYPE
• Switch
LOOPING STATEMENT
• While loop – A while loop tests if a condition is true and if so executes its
body. It then tests the condition is true again, and keeps executing the body as
long as it is
LOOPING STATEMENT
• The Do While is like while except the test is done at the end of the loop
instead of the beginning. This means the body of the loop is always executed
at least once
LOOPING STATEMENT
• The For loop is used when a loop iterates over a sequence of values stored in
some variable. Argument has three expressions: 1st, initialize the variable and
is called once when the statement is first reached, 2nd, to test to see if the
body of the loop should be executed, 3rd , sets the variable to its next value