Sunday, 21 January 2018

Introduction To Storage Classes


Introduction To Storage Classes

Introduction To Storage Classes
strong class provides information about their location and visibility.The storage class decides the portion of the program within which the variables are recognized.
A variables storage class tells us

1.where the variables would be stored.
2.What will be the initial value of the variable,if the
initial value is not specifically assigned.
3.What is the scope of the variable i.e., which functions
the value of the variable would be available.
4.What is the lifetime of the variable, i.e., how long the
 variable exist.

There are 4 types of storage classes in C.
1.Automatic
2.Static
3.External
4.Register




    

Related Posts:

  • Program for Flyorid Traingle/*floyd triangle*/#include<stdio.h>#include<conio.h>main(){ int i,j,t=1,n; clrscr(); printf("enter the value of n"); scanf("%d",&n); for(i=1;i<=n;i++) { for(j=1;j<=i;j++) { printf("%3d",t); t=t+1; }… Read More
  • Program For Sorting | general c programs | #include<stdio.h>#include<conio.h>main(){ int a[50],n,i,j,t; clrscr(); printf("input the no of items u want to sort\n"); scanf("%d",&n); printf("input the value's to be sorted\n"); for(i=0;i<n;i++) { scanf(… Read More
  • Program for Reverse Number#include<stdio.h>#include<conio.h>main(){ int a,r,rev=0; clrscr(); printf("enter the value of a"); scanf("%d",&a); while(a!=0) { r=a%10; rev=rev*10+r; a=a/10; } printf("The reverse no of the given no is=%d"… Read More
  • Program for Matrix Multiplaction | Sample program for Matrix |#include<stdio.h>#include<conio.h>main(){ int a[10][10],b[10][10],c[10][10],i,j,m,n,o,p,k; clrscr(); printf("input the order of A&B matrice's\n"); scanf("%d%d%d%d",&m,&n,&o,&p); if(n==o) { pri… Read More
  • Program for Square root | Example Program #include<stdio.h>#include<conio.h>#include<math.h>main(){ int a,b,c,d; float r,r1,r2; clrscr(); printf("enter the values a,b,c"); scanf("%d%d%d",&a,&b,&c); d=((b*b)-(4*a*c)); if(d==0) { r=-b/(2*a… Read More

0 comments:

Post a Comment