#include <stdio.h>
int global = 0;
void func1();
void func2();
void func3();
int main() {
func1();
func1();
func1();
func2();
func2();
func2();
func3();
func3();
func3();
}
void func1(){
int a = 10; //지역 변수
printf("지역변수: %d\n", a);
a++;
}
void func2(){
printf("전역변수: %d\n", global);
global++;
}
void func3(){
static int b = 10;
printf("정적변수: %d\n", b);
b++;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: