Page Nav

HIDE

Grid

GRID_STYLE

Classic Header

{fbt_classic_header}

Search This Blog

Notes:

latest

04_Preprocessor Directives and Header File



Preprocessor Directives

  • # include  (file)

  • # define  (token value) for e.g( #define PI 3.1415 )

  • # ifdef     (Test a macro definition)

  • # undef  (undefine a macro)

  • #ifndef   (Test whether the macro is no def)

  • # if       (Test the compile time condition)

  • #else   (Specifies alternatives when #if test fails)

  • #elif     

  • #endif    (Specifies the end of #if)

  • #error    

  • #pragma


Header Files 

1 stdio.h Input/Output Functions
printf( ), scanf( )
2 conio.h console input/output
clrscr( ), getch( )
3 assert.h Diagnostics Functions
4 ctype.h Character Handling Functions
5 cocale.h Localization Functions
6 math.h Mathematics Functions
abs( ), sqrt( ), floor( ), celi( ), sin( ), cos( ), log( ), log10( ), pow( ), pow10( ), idepx( ), fabs( ), frexp( ), modf( ), acos( ), asin( ), atan( ), atan2( )
7 setjmp.h Nonlocal Jump Functions
8 signal.h Signal Handling Functions
9stdarg.h Variable Argument List Function
10 stdlib.h General Utility Functions
11 string.h String Functions
strlen( ), strcat( ), strcpy( ), strcpy( ), strchr( ), strcmp( ), strncat( ), strncmp( )
12 time.h Date and Time Functions
asctime( ), clock( ), ctime( ), difftime( ), getdate( ), gmtime( ), localtime( ), mktime( ), setdate( ), strftime( ), time( )
13 complex.h A set of function for manipulating complex numbers
14 stdalign.h For querying and specifying the alignment of objects
15 errno.h For testing error codes
16 locale.h Defines localization functions
17 stdatomic.h For atomic operations on data shared between threads
18 stdnoreturn.h For specifying  non-returning functions
19 uchar.h Types and functions for manipulating Unicode characters
20 fenv.h A set of functions for controlling the floating-point environment
21 wchar.h Defines wide string handling functions
22 tgmath.h Type-generic mathematical functions
23 stdarg.h Accessing a varying number of arguments passed to functions
24 stdbool.h Defines a boolean data type

Download the PDF file



-----------------------------------------------------------------------------------------------------------------------------
The End
-----------------------------------------------------------------------------------------------------------------------------

No comments

If you have any doubts, Please let me know,

Click here to show more posts