#include <stdio.h>

int a = 1234;

int asdf(){
    printf("%d\n", a);
    int b = 999;
    printf("%d\n",b);
}
int main() {
    int b = 1000;
    printf("%d\n", a);
    printf("%d\n",b);
    printf("=======================\n");
    asdf();
    printf("메인 함수와 asdf 함수의 b의 값이 다르기 때문에\n");
    printf("메인 함수에서는 1000,asdf 함수에선 999가 출력됨");
}

Embed on website

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