Some Useful Functions




typedef

◘ It is used to give another name to the previous or existing data type.
◘ It is not creating new data type.
◘ typedef data_type another_name ;

Example-



#define

◘ It is also called compiler directive.
◘ It is also called pre-processor
◘ It is used to define Symbolic constants.
◘ #define pi 3.14;
◘ It is also used to define mricros (small single line statement function)

Example of micros,





#include

◘ It is used to add contains of a file which is written inside the angular bracket < > .

Example -
              #include <iostream>
* It will help to include fine iostream in our program.




#if

◘ It is used to test whether a compiler time condition is true.


#under

◘ It is used to un-define micros.

#else

◘ It is used to specify the alternative .
◘ It used to perform an action if a test fail.

#endif

◘ To end the pre-processor conditions.



By - Somesh Sah




Comments

Popular posts from this blog

Include Vs Import

Object Oriented Program (Paradigm)

Operators and Expressions