<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=OurMajorLangIsCAndCPlusPlus%2FVariable</id>
	<title>OurMajorLangIsCAndCPlusPlus/Variable - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=OurMajorLangIsCAndCPlusPlus%2FVariable"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=OurMajorLangIsCAndCPlusPlus/Variable&amp;action=history"/>
	<updated>2026-05-14T18:28:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://mediawiki.zeropage.org/index.php?title=OurMajorLangIsCAndCPlusPlus/Variable&amp;diff=37358&amp;oldid=prev</id>
		<title>imported&gt;Unknown at 05:23, 7 February 2021</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=OurMajorLangIsCAndCPlusPlus/Variable&amp;diff=37358&amp;oldid=prev"/>
		<updated>2021-02-07T05:23:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== 변수의 영역 ===&lt;br /&gt;
전역 변수 - 해당 파일 내에서 유효함 (외부 참조 가능), BSS 세그먼트의 공간 사용&lt;br /&gt;
지역 변수 - 해당 블럭 내에서 유효함&lt;br /&gt;
static 전역 변수 - 해당 파일 내에서 유효함 (외부 참조 불가능)&lt;br /&gt;
&lt;br /&gt;
=== 변수의 기억 부류 지정 ===&lt;br /&gt;
변수의 기억 장소 선택&lt;br /&gt;
&lt;br /&gt;
register - CPU 레지스터를 변수로 할당&lt;br /&gt;
auto - 스택 공간을 변수로 할당&lt;br /&gt;
static - BSS 세그먼트의 공간을 변수로 할당&lt;br /&gt;
extern - 외부 변수 참조&lt;br /&gt;
&lt;br /&gt;
=== const 키워드 ===&lt;br /&gt;
 const int a;&lt;br /&gt;
 int const b;&lt;br /&gt;
 const int *c;&lt;br /&gt;
 int * const d;&lt;br /&gt;
 const int * const e;&lt;br /&gt;
&lt;br /&gt;
=== volatile 키워드 ===&lt;br /&gt;
 #include &amp;amp;lt;stdio.h&amp;amp;gt;&lt;br /&gt;
 #include &amp;amp;lt;time.h&amp;amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 void main()&lt;br /&gt;
 {&lt;br /&gt;
 	clock_t start, finish;&lt;br /&gt;
 	double duration;&lt;br /&gt;
 &lt;br /&gt;
 	start = clock();&lt;br /&gt;
 &lt;br /&gt;
 	volatile int a = 10, b = 20, c;&lt;br /&gt;
 	for(int i = 0 ; i &amp;amp;lt; 1000000000 ; i++)&lt;br /&gt;
 		c = a * b;&lt;br /&gt;
 &lt;br /&gt;
 	finish = clock();&lt;br /&gt;
 &lt;br /&gt;
 	duration = (double)(finish - start) / CLOCKS_PER_SEC;&lt;br /&gt;
 	printf(&amp;quot;%2.1f seconds\n&amp;quot;, duration);&lt;br /&gt;
 }&lt;br /&gt;
----&lt;br /&gt;
[[OurMajorLangIsCAndCPlusPlus]]&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;Unknown</name></author>
	</entry>
</feed>