Posts

Showing posts from January, 2020

Concept of Storage Classes In C

Image
What are Storage Classes ? Storage classes in c programming are used to describe about the features of a variable/functions.  These features basically include scope , life time , default value, storage area of variable/functions in c. Scope : It means the area of code where a variable is accessible. Life Time : It means the time duration during runtime till which our variable is live or can be used. In this time duration doesn't means the actual time it related with function life where it is used for that duration. Default Value : It is the value which is assigned to variable initially when we declare it. Storage Area : It means where our variable data is stored whether it is in register or hard disk,etc. Types of Storage Classes Auto  * Any variable in c programming is auto variable by default. So, there is no need to use the keyword auto.   * if variable is not initialized , by default auto variable contains garbage value. * auto variable is stored in

Input Output in C Programs

Need of Input - Output Whenever we are using computers and performing different tasks ,there is alway involvement of input and output. for example, you want to play music the you insert the clip as input and what you get is the sound from the speakers which is a output of given input.  Therefore , for performing task such as playing music you need input- output . similarly you need input and output for each and every task in computer system. In C programming during runtime or program development you need input so that program can use those values and perform the particular given task and give specific output. C libraries provide many functions for input and output which are as follows : printf() function This inbuilt function of stdio.h header file is used to print data to the console screen (The black screen which we see when we run program). There are numerous forms of using printf function which can include printing string,character,integer,floating number,et