<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="th">
	<id>https://theory.cpe.ku.ac.th/wiki/index.php?action=history&amp;feed=atom&amp;title=%E0%B8%9E%E0%B8%B7%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%99%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1%3A%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%81%E0%B8%9B%E0%B8%A3</id>
	<title>พื้นฐานการเขียนโปรแกรม:ตัวแปร - ประวัติรุ่นแก้ไข</title>
	<link rel="self" type="application/atom+xml" href="https://theory.cpe.ku.ac.th/wiki/index.php?action=history&amp;feed=atom&amp;title=%E0%B8%9E%E0%B8%B7%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%99%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1%3A%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%81%E0%B8%9B%E0%B8%A3"/>
	<link rel="alternate" type="text/html" href="https://theory.cpe.ku.ac.th/wiki/index.php?title=%E0%B8%9E%E0%B8%B7%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%99%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1:%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%81%E0%B8%9B%E0%B8%A3&amp;action=history"/>
	<updated>2026-04-18T19:58:54Z</updated>
	<subtitle>ประวัติรุ่นแก้ไขของหน้านี้ในวิกิ</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>https://theory.cpe.ku.ac.th/wiki/index.php?title=%E0%B8%9E%E0%B8%B7%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%99%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1:%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%81%E0%B8%9B%E0%B8%A3&amp;diff=1509&amp;oldid=prev</id>
		<title>210.169.224.55 เมื่อ 11:57, 14 ธันวาคม 2549</title>
		<link rel="alternate" type="text/html" href="https://theory.cpe.ku.ac.th/wiki/index.php?title=%E0%B8%9E%E0%B8%B7%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%99%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1:%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%81%E0%B8%9B%E0%B8%A3&amp;diff=1509&amp;oldid=prev"/>
		<updated>2006-12-14T11:57:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;th&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;←รุ่นแก้ไขก่อนหน้า&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;รุ่นแก้ไขเมื่อ 11:57, 14 ธันวาคม 2549&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot; &gt;แถว 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;นั้นไม่ถูกต้องตามหลักไวยากรณ์&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;นั้นไม่ถูกต้องตามหลักไวยากรณ์&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ชนิดของตัวแปรพื้ินฐาน&lt;/del&gt;====&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ชนิดของตัวแปรพื้นฐาน&lt;/ins&gt;====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| border=1 align=center&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| border=1 align=center&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|+ตารางตัวแปรพื้นฐานของภาษาC&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|+ตารางตัวแปรพื้นฐานของภาษาC&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l62&quot; &gt;แถว 62:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 62:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|----&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|----&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|unsigned short int&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|unsigned short int&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;จำนวนเต็มที่ีไม่เป็นลบ&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;จำนวนเต็มที่ไม่เป็นลบ&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|2&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|0 - 65536&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|0 - 65536&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l74&quot; &gt;แถว 74:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 74:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|----&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|----&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|unsigned (long )int&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|unsigned (long )int&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;จำนวนเต็มที่ีไม่เป็นลบ&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;จำนวนเต็มที่ไม่เป็นลบ&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|4&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|4&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|0 - 4294967295(&amp;lt;math&amp;gt;2^{32}&amp;lt;/math&amp;gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|0 - 4294967295(&amp;lt;math&amp;gt;2^{32}&amp;lt;/math&amp;gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>210.169.224.55</name></author>
		
	</entry>
	<entry>
		<id>https://theory.cpe.ku.ac.th/wiki/index.php?title=%E0%B8%9E%E0%B8%B7%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%99%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1:%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%81%E0%B8%9B%E0%B8%A3&amp;diff=1343&amp;oldid=prev</id>
		<title>Pramook เมื่อ 22:31, 4 พฤศจิกายน 2549</title>
		<link rel="alternate" type="text/html" href="https://theory.cpe.ku.ac.th/wiki/index.php?title=%E0%B8%9E%E0%B8%B7%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%99%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1:%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%81%E0%B8%9B%E0%B8%A3&amp;diff=1343&amp;oldid=prev"/>
		<updated>2006-11-04T22:31:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;หน้าใหม่&lt;/b&gt;&lt;/p&gt;&lt;div&gt;ในภาษา C มี&lt;br /&gt;
====การdeclareตัวแปร====&lt;br /&gt;
การใช้ตัวแปรในภาษาC จำเป็นจะต้องมีการdeclareตัวแปร เพื่อบอกชื่อและชนิดของตัวแปร โดยเขียน ชนิดของตัวแปร ตามด้วย ชื่อตัวแปรนั้นๆ&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
ชนิดของตัวแปร ชื่อตัวแปร;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
เช่น&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
int i;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
เป็นการdeclareตัวแปรชื่อ i ให้เป็นชนิด int&lt;br /&gt;
&lt;br /&gt;
เราสามารถdeclareตัวแปรชนิดเดียวกันหลายๆตัวได้โดยใช้ตำสั่งดังนี้&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
ชนิดของตัวแปร ชื่อตัวแปรตัวที่1,ชื่อตัวแปรตัวที่2,...,ชื่อตัวแปรตัวที่n;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
เช่น&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
char a,b,c;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
เป็นการdeclareตัวแปร3ตัว ชื่อ a b และ c ตามลำดับ โดยให้ตัวแปรทั้งสามตัวเป็นชนิด char&lt;br /&gt;
&lt;br /&gt;
====ชื่อตัวแปร====&lt;br /&gt;
ชื่อตัวแปรในภาษาCนั้นมีข้อกำหนดว่า ต้องเริ่มด้วย ตัวอักษรภาษาอังกฤษตัวเล็กหรือตัวใหญ่ก็ได้ หรือ Underscore(&amp;quot;_&amp;quot;) แล้วจะตามด้วย ตัวอักษรภาษาอังกฤษตัวเล็กหรือตัวใหญ่ก็ได้ หรือ Underscore(&amp;quot;_&amp;quot;) หรือ ตัวเลข กี่ตัวก็ได้&lt;br /&gt;
เช่น&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;_&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;a&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;A&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;Data&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;index&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;i32&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;p2d_32&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
เป็นชื่อตัวแปรที่ถูกต้องตามไวยากรณ์ภาษาC&lt;br /&gt;
แต่&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;32x&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;A-D&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;max min&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
นั้นไม่ถูกต้องตามหลักไวยากรณ์&lt;br /&gt;
&lt;br /&gt;
====ชนิดของตัวแปรพื้ินฐาน====&lt;br /&gt;
{| border=1 align=center&lt;br /&gt;
|+ตารางตัวแปรพื้นฐานของภาษาC&lt;br /&gt;
!ชื่อชนิดของตัวแปร&lt;br /&gt;
!ลักษณะของตัวแปร&lt;br /&gt;
!ขนาดของตัวแปร(bytes)&lt;br /&gt;
!ช่วงของข้อมูลที่เก็บได้&lt;br /&gt;
!หมายเหตุ&lt;br /&gt;
|----&lt;br /&gt;
|byte&lt;br /&gt;
|จำนวนเต็ม&lt;br /&gt;
|1&lt;br /&gt;
| -128 - 127&lt;br /&gt;
|&lt;br /&gt;
|----&lt;br /&gt;
|unsigned byte&lt;br /&gt;
|จำนวนเต็ม&lt;br /&gt;
|1&lt;br /&gt;
|0 - 255&lt;br /&gt;
|&lt;br /&gt;
|----&lt;br /&gt;
|short int&lt;br /&gt;
|จำนวนเต็ม&lt;br /&gt;
|2&lt;br /&gt;
| -32768 - 32767&lt;br /&gt;
|&lt;br /&gt;
|----&lt;br /&gt;
|unsigned short int&lt;br /&gt;
|จำนวนเต็มที่ีไม่เป็นลบ&lt;br /&gt;
|2&lt;br /&gt;
|0 - 65536&lt;br /&gt;
|&lt;br /&gt;
|----&lt;br /&gt;
|(long )int&lt;br /&gt;
|จำนวนเต็ม&lt;br /&gt;
|4&lt;br /&gt;
| -2147483648 - 2147483647(&amp;lt;math&amp;gt;-2^{31} - 2^{31}-1&amp;lt;/math&amp;gt;)&lt;br /&gt;
|&lt;br /&gt;
|----&lt;br /&gt;
|unsigned (long )int&lt;br /&gt;
|จำนวนเต็มที่ีไม่เป็นลบ&lt;br /&gt;
|4&lt;br /&gt;
|0 - 4294967295(&amp;lt;math&amp;gt;2^{32}&amp;lt;/math&amp;gt;)&lt;br /&gt;
|&lt;br /&gt;
|----&lt;br /&gt;
|float (/single)&lt;br /&gt;
|จำนวนจริง&lt;br /&gt;
|4&lt;br /&gt;
|&amp;lt;math&amp;gt;-3.2 \times 10^{\plusmn 38} - 3.2 \times 10^{\plusmn 38}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|----&lt;br /&gt;
|double&lt;br /&gt;
|จำนวนจริง&lt;br /&gt;
|8&lt;br /&gt;
|&amp;lt;math&amp;gt;-3.2 \times 10^{\plusmn 308} - 3.2 \times 10^{\plusmn 308}&amp;lt;/math&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|----&lt;br /&gt;
|char&lt;br /&gt;
|ตัวอักษร&lt;br /&gt;
|1&lt;br /&gt;
|0 - 255&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====การอ่านค่าจากตัวแปร====&lt;br /&gt;
ในภาษาCสามารถอ่านค่าจากตัวแปรได้โดยเรียกชื่อตัวแปรนั้นๆ&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
ชื่อตัวแปร&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
====การใส่ค่าให้ตัวแปร====&lt;br /&gt;
เราสามารถใส่ค่าให้ตัวแปรได้โดยการเขียนชื่อตัวแปร ตามด้วยเครื่องหมายเท่ากับ แล้ว ตามด้วยค่าที่จะใส่ให้ตัวแปรนั้นๆ&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
ชื่อตัวแปร = ค่าที่จะใส่ให้;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
เช่น&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
i = 5;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
เป็นการกำหนดค่า 5 ให้ตัวแปร i&lt;br /&gt;
&lt;br /&gt;
เราสามารถใส่ค่าให้ตัวแปรหลายๆตัวได้ด้วยคำสั่งดังนี้&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
ชื่อตัวแปรตัวที่n = ... = ชื่อตัวแปรตัวที่2 = ชื่อตัวแปรตัวที่1 = ค่าที่จะใส่ให้;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
เช่น&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
c = b = a = &amp;#039; &amp;#039;;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
เป็นการกำหนดค่า space(&amp;#039; &amp;#039;) ให้กับตัวแปร a, b และ c ตามลำดับ&lt;br /&gt;
&lt;br /&gt;
====ขอบเขตของตัวแปร====&lt;/div&gt;</summary>
		<author><name>Pramook</name></author>
		
	</entry>
</feed>