Showing posts with label Constant Macro. Show all posts
Showing posts with label Constant Macro. Show all posts

Tuesday, 22 May 2012

Constant Macro, Delimiters, Statement Terminator

Dear Members,
    In this lesson we give you a concept about Constant Macro, Delimiters, Statement Terminator and its importance in C program.

  • Constant Macro:-
                        The 'define' directive is an important preprocessor directive. It is used to define a constant known constant macro. A constant macro is an identifier, which is assigned a particular constant value. The value of identifier remains constant during the execution of program.

  • Delimiters:-

                            The body of the function is surrounded by braces (or curly brackets { and } ). These braces are called delimiters. The left brace indicates the start of the body of the function, whereas the matching right brace indicates the end of the body by the function.

    • Statement Terminator:-
     
                                Every statement of C program must be terminated with semicolon ( ; ). It is called statement terminator. If any of the statement is missing the statement terminator ( ; ), the following error message will be shown by compiler during compiling process.
    Statement missing;