<?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>while loop syntax - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/while-loop-syntax/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/while-loop-syntax/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Mon, 03 Oct 2022 11:52:50 +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>while loop syntax - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/while-loop-syntax/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is While Loop in C Language with example ?</title>
		<link>https://www.wikitechy.com/interview-questions/c/what-is-while-loop-in-c-language-with-example/</link>
					<comments>https://www.wikitechy.com/interview-questions/c/what-is-while-loop-in-c-language-with-example/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Mon, 03 Oct 2022 11:52:50 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[c while and do..while loop]]></category>
		<category><![CDATA[c while loop]]></category>
		<category><![CDATA[do while loop example]]></category>
		<category><![CDATA[do-while loop in c programming examples]]></category>
		<category><![CDATA[for loop in c programming example]]></category>
		<category><![CDATA[for loop in c programming examples]]></category>
		<category><![CDATA[while loop example]]></category>
		<category><![CDATA[while loop in c]]></category>
		<category><![CDATA[while loop in c language with examples]]></category>
		<category><![CDATA[while loop in c programming example]]></category>
		<category><![CDATA[while loop in c programming with example]]></category>
		<category><![CDATA[while loop syntax]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4928</guid>

					<description><![CDATA[While loop evaluates the conditions inside the brackets. If the condition returns true, the statements inside the while loop body will be executed. Condition inside the while loop is executed once again. This process goes on until the condition in the while loop becomes false. Once the condition is false, while loop terminates. Syntax of [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li>While loop evaluates the conditions inside the brackets.</li>
<li>If the condition returns true, the statements inside the while loop body will be executed.</li>
<li>Condition inside the while loop is executed once again.</li>
<li>This process goes on until the condition in the while loop becomes false.</li>
<li>Once the condition is false, while loop terminates.</li>
</ul>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4929 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/while-loop-in-c.jpg" alt="" width="331" height="341" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/while-loop-in-c.jpg 331w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/while-loop-in-c-291x300.jpg 291w" sizes="(max-width: 331px) 100vw, 331px" /></p>
<h2 id="syntax-of-while-loop">Syntax of While loop</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">while (testExpression) {<br/>  // the body of the loop <br/>}</code></pre> </div>
<h2 id="sample-code">Sample Code</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">// Print numbers from 1 to 5<br/><br/>#include &lt;stdio.h&gt;<br/>int main() {<br/>  int i = 1;<br/>    <br/>  while (i &lt;= 5) {<br/>    printf(&quot;%d\n&quot;, i);<br/>    ++i;<br/>  }<br/><br/>  return 0;<br/>}</code></pre> </div>
<h2 id="output">Output</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">1<br/>2<br/>3<br/>4<br/>5</code></pre> </div>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/c/what-is-while-loop-in-c-language-with-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
