#include <stdio.h>
int Add(int val);//변수
static int num=1;//변수-전역 

int main(void)
{
    static int num=5;//변수
    printf("num: %d \n", Add(3)); // 12
    printf("num: %d \n", num+9); // 14
    return 0;
}

int Add(int val)//변수 val=3
{
    int num=9;//변수
    num += val; // 12
    return num; // 12
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: