- UNIT-I (Array)
strlen(),strcpy(), strcat() ,strcmp()
Definition
Macro substitution directives
File inclusion directives
Conditional compilation
Bitwise Operators
Shift operators
Masks
Bitfield
Macro substitution directives
File inclusion directives
Conditional compilation
Bitwise Operators
Shift operators
Masks
Bitfield
File inclusion directives
File Inclusive Directives
- File inclusive Directories are used to include user define header file inside C Program.
- File inclusive directory checks included header file inside same directory (if path is not mentioned).
- File inclusive directives begins with #include
- If Path is mentioned then it will include that header file into current scope.
- Instead of using triangular brackets we use “Double Quote” for inclusion of user defined header file.
- It instructs the compiler to include all specified files.
File Inclusion: pre-processor directive tells the compiler to include a file in the source code program. There are two types of files which can be included by the user in the program:
- Standard files: These files contains definition of pre-defined functions like printf(), scanf() etc. These files must be included for working with these functions. Different function are declared in different header files.
Syntax: #include< file_name >
where file_name is the name of file to be included. The ‘<‘ and ‘>’ brackets tells the compiler to look for the file in standard directory.
- user defined files: When a program becomes very large, it is good practice to divide it into smaller files and include whenever needed. These types of files are user defined files. These files can be included as:
Syntax:# include "file name"
Next TopicConditional compilation
कोई टिप्पणी नहीं:
एक टिप्पणी भेजें