Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
23 views1 page

6

Uploaded by

Aqsa Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views1 page

6

Uploaded by

Aqsa Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

PRACTICAl :- 6

INPUT:-
C Program to demonstrate Storage Classes: Auto , Extern, Static,Register

//Div - E
//Roll No. - 3134

#include<stdio.h>
#include<conio.h>

int d;
void show (int
n ); int main
(void)

{
int count =
3; clrscr();
printf("\n 3134\n ");
printf(" \
n");
printf("Demonstrating Storage Classes\n\
n"); printf("Auto,
Extern,Static,Register\n\n");
show(count);
printf("\n\n");
getch();
return 0;
}
void show (int n )
{
auto int a = 20 ;
static int b = 30 ;
register int c = 40
;
printf("Auto : %d\n", a) ;
printf("Extern : %d\n", d) ;
printf("Static : %d\n", b) ;
printf("Register : %d\n\n",
c) ; a++;
b+
+;
c+
+;
d+
+;
if (n >0 )
{
show ( n - 1 );
}
}

You might also like