<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>difference between variables and constants in c - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/difference-between-variables-and-constants-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/difference-between-variables-and-constants-in-c/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Fri, 07 Oct 2022 09:03:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>difference between variables and constants in c - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/difference-between-variables-and-constants-in-c/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is constant and variable in C ?</title>
		<link>https://www.wikitechy.com/interview-questions/c/what-is-constant-and-variable-in-c/</link>
					<comments>https://www.wikitechy.com/interview-questions/c/what-is-constant-and-variable-in-c/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Fri, 07 Oct 2022 09:03:07 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[c contstants]]></category>
		<category><![CDATA[c variables]]></category>
		<category><![CDATA[constants and literals]]></category>
		<category><![CDATA[constants and variables]]></category>
		<category><![CDATA[constants and variables in c]]></category>
		<category><![CDATA[constants vs variables in c language]]></category>
		<category><![CDATA[declare variable as constant in c]]></category>
		<category><![CDATA[difference between constant and variable in c]]></category>
		<category><![CDATA[difference between variables and constants in c]]></category>
		<category><![CDATA[non constant variable in c]]></category>
		<category><![CDATA[variable and constant in c]]></category>
		<category><![CDATA[variables and constants in c programming]]></category>
		<category><![CDATA[what is constant in c]]></category>
		<category><![CDATA[what is variable in c]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4977</guid>

					<description><![CDATA[Constant A constant is a value or identifier whose value is fixed and does not change, in the entire program. Constant is similar to a variable but it can hold only a single variable during the execution of program. Ex: const double PI = 3.14; Here, Const is a identifier Double is a data type [&#8230;]]]></description>
										<content:encoded><![CDATA[<h2 id=""><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4978 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/difference-between-constants-variable.jpg" alt="" width="933" height="363" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/difference-between-constants-variable.jpg 933w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/difference-between-constants-variable-300x117.jpg 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/difference-between-constants-variable-768x299.jpg 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/difference-between-constants-variable-390x152.jpg 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/difference-between-constants-variable-820x319.jpg 820w" sizes="(max-width: 933px) 100vw, 933px" /></h2>
<h2 id="constant"><strong>Constant</strong></h2>
<ul>
<li>A constant is a value or identifier whose value is fixed and does not change, in the entire program.</li>
<li>Constant is similar to a variable but it can hold only a single variable during the execution of program.</li>
<li><strong>Ex: </strong><strong>const double PI = 3.14;</strong><br />
Here,</p>
<ul>
<li>Const is a identifier</li>
<li>Double is a data type</li>
<li>PI is a constant variable name that takes a value of 3.14.</li>
<li>This value of 3.14 does not change during the entire program.</li>
</ul>
</li>
</ul>
<h2 id="variable"><strong>Variable</strong></h2>
<ul>
<li>Variable is any characteristic, number, or quantity that can be measured or counted.</li>
<li>It is also called as data item.</li>
<li>A Variable is a name or an identifier that can store any values, and those values can be changed at any time during the program.</li>
<li>For example: <strong>int score = 6;</strong>
<ul>
<li>Here, score is a variable name of integer type that stores the value 6. The value of score can be changed any time during the program.</li>
</ul>
</li>
</ul>
<p><img decoding="async" class="alignnone size-full wp-image-4980 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/constant-vs-variable-in-c-1.jpg" alt="" width="580" height="320" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/constant-vs-variable-in-c-1.jpg 580w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/constant-vs-variable-in-c-1-300x166.jpg 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/constant-vs-variable-in-c-1-390x215.jpg 390w" sizes="(max-width: 580px) 100vw, 580px" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/c/what-is-constant-and-variable-in-c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
