jagomart
digital resources
picture1_Storage Class


 117x       Filetype PDF       File size 0.31 MB       Source: www.litindia.ac.in


File: Storage Class
storage classes find out the output of the following programs slno questions slno questions 1 what is storage class 4 why pointer doesn t refer a register variable storage class ...

icon picture PDF Filetype PDF | Posted on 01 Feb 2023 | 3 years ago
Partial capture of text on file.
                     
                                                                         Storage Classes 
                                                                                                                                              
                                                                  Find out the output of the following Programs 
                                                                                     
                    SLNO                          QUESTIONS                          SLNO                          QUESTIONS 
                      1     What is storage class?                                     4     Why pointer doesn’t refer a register variable? 
                                                                                                                         
                            Storage class is a data structure used by every C                Registers are used as the memory element of the 
                            compiler which decides the scope,life ,default initial           microprocessor. They have no address, So pointer 
                            value and storage of a variable and functions.                   doesn’t refers to a register variable. 
                                                                                                                         
                      2     What is the difference between program scoping             5     What is the use static storage class in C? 
                            and file scoping                                                 Static is used in two different places, such as 
                            Program scoping: If a variable or function is defined            To avoid the reinitialisation : when static is used as 
                            in one file, and that can be accessed in other file of a         the local variable 
                            C program, is known as program scoping.                          File scoping: when static is used as global variable. 
                                                                                                                         
                            File scoping:  If a variable or function is defined in 
                            one file, and that can’t be accessed in other file of a 
                            C program, but only can be access in same file, is 
                      3     known as file scoping.                                     6 
                            What is difference between writing static as local               What are the different scope rules in C? 
                            and global variable                                              Different scope rules in C is 
                                                                                                                         
                            Static is used in two different places, such as                  Program scoping 
                            Static is used in two different places, such as                  File scoping 
                                                                                             Function scoping 
                            To avoid the reinitialisation : when static is used as           Block scoping 
                            the local variable 
                             
                            File scoping: when static is used as global variable. 
                                                                                     
                                                                                     
                     
The words contained in this file might help you see if this file matches what you are looking for:

...Storage classes find out the output of following programs slno questions what is class why pointer doesn t refer a register variable data structure used by every c registers are as memory element compiler which decides scope life default initial microprocessor they have no address so value and functions refers to difference between program scoping use static in file two different places such if or function defined avoid reinitialisation when one that can be accessed other local known global but only access same writing rules block...

no reviews yet
Please Login to review.