#include <stdio.h>
int f(int n){ // int n 지역변수(매개변수)
    return 0;
}

int main(void)
{
    int num=1;

    if(num==1)
    {
        // int num=7;
        num+=10; // 11
        printf("if문 내 지역변수 num: %d \n", num);
    }
    f(10) // 인자
    printf("main 함수 내 지역변수 num: %d \n", num);
    return 0;
}

/*
[메모리 공간]
num=1 (main)


*/

Embed on website

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