by Dinesh Thakur Category: Functions

Auto

 

The values of the variables are not retained beyond the scope of a function in which they are declared. The values of the variables can be accessed only during the execution of a function. Whatever variables are declared in a function, they are assumed implicitly of auto storage type. For example in the following program segment

 
by Dinesh Thakur Category: Functions

Any value assigned to an automatic variable within a function is lost once the control returns from the called function to the calling function. However, there may be a situation where the value of the local variable needs to be preserved even after the execution of the function gets over. This need can be fulfilled by declaring the variable as static. A static variable is commonly used when it is necessary for a function to remember a value between its calls. To understand the concept of static variables, consider this example.

 
 
by Dinesh Thakur Category: Array Pointer and Union

Arrays:- When there is a need to use many variables then There is a big problem because we will Conflict with name of variables So that in this Situation where we wants to Operate on many numbers then we can use array . The Number of Variables also increases the complexity of the Program. So that we uses Arrays.

 
by Dinesh Thakur Category: Array Pointer and Union

We know that Files are used for Storing Permanent information. And C++ provides a Facility to a developer the Retrieve the Information from File and he may also modify the Contents of a File So that we can say that File Handling is the Concept to Store, Retrieve and Modify the Information which is stored in the Form of Files in your Computer.



 

Page 9 of 18



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.