<?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>Illustration of break statement | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/illustration-of-break-statement/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Thu, 29 Dec 2022 13:55:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>Statement of Break</title>
		<link>https://studentprojects.in/software-development/cpp/statement-of-break/</link>
					<comments>https://studentprojects.in/software-development/cpp/statement-of-break/#respond</comments>
		
		<dc:creator><![CDATA[Shubhajna Rai]]></dc:creator>
		<pubDate>Sat, 31 Dec 2022 01:49:00 +0000</pubDate>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Break statements]]></category>
		<category><![CDATA[Illustration of break statement]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=10049</guid>

					<description><![CDATA[<p>The break statement is used to terminate the execution of a loop or switch case statement and move control to the next block of code following the loop or switch case in which it was used. Break statements are used to exit the loop in which the programme control was encountered. In C++, the break</p>
<p>The post <a href="https://studentprojects.in/software-development/cpp/statement-of-break/">Statement of Break</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>The break statement is used to terminate the execution of a loop or switch case statement and move control to the next block of code following the loop or switch case in which it was used.</p>



<p>Break statements are used to exit the loop in which the programme control was encountered. In C++, the break statement is used inside loops or switch statements. One such illustration of how a break statement works is</p>



<pre class="wp-block-code"><code lang="cpp" class="language-cpp">#include &lt;iostream&gt;
using namespace std;
 
int main()
{
    int num = 10;
    int i;
    for (i = 0; i &lt; num; i++)
    {
        if (i == 6)
        {
            break;
        }
        cout &lt;&lt; i &lt;&lt; " ";
    }
 
    return 0;
}
</code></pre>



<p>Output:</p>



<p>0 1 2 3 4 5</p>



<p>When I reached 6, the break command was performed, and the programme exited the for loop.</p><p>The post <a href="https://studentprojects.in/software-development/cpp/statement-of-break/">Statement of Break</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/cpp/statement-of-break/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
