변수는 스코프(scope)와 주기(duration) 외에도 링크(linkage)라는 세 번째 속성전역 변수는 정적 주기(static duration) 를 가진다프로그램이 시작할 때 생성되고 프로그램이 종료할 때 파괴된다CPP variable keywordsc++ scopec++ durationc++ assign C++ 04.03 - 전역 변수와 링크 (Global variable and linkage)04.03 - 전역 변수와 링크 (Global variable and linkage) 함수 내부에서 정의된 변수를 지역 변수(local variable)라고 한다. 지역 변수는 블록 스코프(정의된 블록 내에서만 접근 가능)가 있고 자동 주기(정의..https://boycoding.tistory.com/167