MCQs Test!! VB Basic Test !! Essentials of VB !! Creating User Services !! function !! Anatomy !! GK March-2019 !! DATA TYPES IN JAVA !! Classes ,Constructor ,Methods,Inheritance !! Ecology-I !! Biology 2019 !! Gk april 2019 !! Biology (living world) !! Plant anatomy !! CELL STRUCTURES AND FUNCTION !! General biology !! Human physiology !! Data structure !! Ecology-II !! GK TEST !! Reproduction in plants !! Human reproduction !! The ABC of C !! Operating system set1 !! Operating system set2 !! Gk and current affairs !! Animal kingdom !! Number system !! Animal kingdom-II !! Gk TEST-III !! Number series !! Microorganisms !! Interview question in c !! Time and Work !! Percentage !! General history !! Average !! Cells !! Locomotion and Movement !! paging !! Bacteriology !! Page replacement policy !! Secondary memory and Disk scheduling !! Introduction of Nervous System and neurons !! Plant harmones !! Transport and Mineral Nutrition in Plants !! Neurotransmitters !! Modern Indian History !! Photosynthesis in Plants !! Modern Indian History-II !! Plant respiration !! Environment & Biodiversity !! Environment & Biodiversity - II !! Algae, Bryophytes, Pteridophytes !! Area !! Cricket !! Days of the Year (India and the World) !! Plant Pathology - I !! Indian Transport System !! Plant Pathology - II !! Aptitude !! Biology !! Botany !! C language !! Computer Science !! Core Java !! Gate !! GK !! Mysql !! Operating system !! Physics !! VB-Visual Basic !! Zoology

C Programming language

Operators in C Programming Language

  Storage Classes In C Language


Storage classes define the scope and lifetime of the variable and function within a C program.
Types of storage classes in C :

  • Auto storage class

  • Register storage class

  • Static storage class

  • Extern storage class

    Auto storage class
    : This is the default storage class for local variable.
    For example:

    {

    int num;
    auto int month;

     


    }

    Register storage class : This is used to define the local variable that should be stored in register instead of RAM.
    For example.
    {
    register int miles;
    }
    Static storage class : This is the default storage class for global variables.
    For example.
    {
    int num;
    static int count;
    main()
    printf(“%d”,count);
    }

    Extern storage class : Extern is used to give a reference of a global variable that is visible to all the program files.
    File 1: main.c


    int count=5;

    main()
    {
    write_extern();
    }
    File 2: write.c

    void write_extern(void);

    extern int count;

    void write_extern(void)
    {
    printf("count is %i\n", count);
    }
    Here extern keyword is being used to declare count in another file.