-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExp6.txt
More file actions
39 lines (36 loc) · 739 Bytes
/
Copy pathExp6.txt
File metadata and controls
39 lines (36 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//NAME: Zoya Ayub Shaikh
//UIN:241A016
//ROLL NO: 16
#include<stdio.h>
void counter()
{
static int count=0;
count++;
printf("COUNTER FUNCTION CALL:%d\n",count);
}
int main()
{int i;
printf("\t\t\t***STORAGE CLASS\n");
for(i=1;i<=16;i++)
{
counter();
}
return 0;
}
***STORAGE CLASS
COUNTER FUNCTION CALL:1
COUNTER FUNCTION CALL:2
COUNTER FUNCTION CALL:3
COUNTER FUNCTION CALL:4
COUNTER FUNCTION CALL:5
COUNTER FUNCTION CALL:6
COUNTER FUNCTION CALL:7
COUNTER FUNCTION CALL:8
COUNTER FUNCTION CALL:9
COUNTER FUNCTION CALL:10
COUNTER FUNCTION CALL:11
COUNTER FUNCTION CALL:12
COUNTER FUNCTION CALL:13
COUNTER FUNCTION CALL:14
COUNTER FUNCTION CALL:15
COUNTER FUNCTION CALL:16