<?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>bool in c | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/bool-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Mon, 02 Jan 2012 12:39:23 +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>How to use bool in c?</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c-faq/bool/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c-faq/bool/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Mon, 02 Jan 2012 12:38:55 +0000</pubDate>
				<category><![CDATA[C Questions & Answers]]></category>
		<category><![CDATA[bool in c]]></category>
		<category><![CDATA[bool equivalent in c]]></category>
		<category><![CDATA[boolean in c]]></category>
		<category><![CDATA[bool data type]]></category>
		<category><![CDATA[enum in c]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=2519</guid>

					<description><![CDATA[<p>There is no bool data type in C. In C99 standerd version, the boolean variable has been added as _Bool. Additionally, a new header stdbool.h has been added for compatibility reasons. This header allows programmers to use boolean types in the same way, as in C++ language. To use bool in C, we can use</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c-faq/bool/">How to use bool in c?</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>There is no bool data type in C. In C99 standerd version, the boolean variable has been added as _Bool. Additionally, a new header stdbool.h has been added for compatibility reasons. This header allows programmers to use boolean types in the same way, as in C++ language.</p>
<p>To use bool in C, we can use enum as below.  </p>
<pre lang="c" line="1">
enum bool {
    false, true
};

bool value;
value = bool(0); // False
value = bool(1); // True

if(value == false)
	printf("Value is false");
else
	printf("Value is true");
</pre>
<p>Here we can use variable &#8216;value&#8217; as boolean variable. </p><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c-faq/bool/">How to use bool in c?</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c-faq/bool/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
