Breaking

रविवार, 19 अप्रैल 2020

BCA 2nd Sem Notes (file in c)

  • 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)





  • UNIT-IV (Structures)
  • Definition



  • UNIT-V                                  (C Preprocessor)




  • UNIT-VI                                (File Handling)


  • Definition of Files

    A file is a collection of data stored in one unit, identified by a filename. It can be a document, picture, audio or video stream, data library, application, or other collection of data.


    the most important file management functions available in 'C,'
    functionpurpose
    fopen ()Creating a file or opening an existing file
    fclose ()Closing a file
    fprintf ()Writing a block of data to a file
    fscanf ()Reading a block data from a file
    getc ()Reads a single character from a file
    putc ()Writes a single character to a file
    getw ()Reads an integer from a file
    putw ()Writing an integer to a file
    fseek ()Sets the position of a file pointer to a specified location
    ftell ()Returns the current position of a file pointer
    rewind ()Sets the file pointer at the beginning of a file




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

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