Breaking

मंगलवार, 14 अप्रैल 2020

BCA 2nd Sem Notes-File inclusion directives

  • UNIT-I (Array)
Definition
Declaration & initialization of 1D 
Accessing array elements
Displaying array elements
Sorting arrays
Arrays and function
Declaration & initialization of 1D
Accessing and Displaying
Memory representation of array [Row Major, Column Major]
Multidimensional array





  • UNIT-II (Pointers)
  • Definition
    Declaration & initialization
    Indirection operator
    address of operator
    pointer arithmetic
    dynamic memory allocation
    arrays and pointers
    function and pointers


  • UNIT-III (Strings)

  •   strlen(),strcpy(),       strcat() ,strcmp()





  • UNIT-IV (Structures)
  • Definition


  • UNIT-V                                     (C Pre-processor)




  • UNIT-VI                                (File Handling)

  • File inclusion directives

    File Inclusive Directives

    1. File inclusive Directories are used to include user define header file inside C Program.
    2. File inclusive directory checks included header file inside same directory (if path is not mentioned).
    3. File inclusive directives begins with #include
    4. If Path is mentioned then it will include that header file into current scope.
    5. Instead of using triangular brackets we use “Double Quote” for inclusion of user defined header file.
    6. 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:


    1.  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.


    1. 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"





    कोई टिप्पणी नहीं:

    एक टिप्पणी भेजें