<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by UL. Haleema 2020ICTS068 on Medium]]></title>
        <description><![CDATA[Stories by UL. Haleema 2020ICTS068 on Medium]]></description>
        <link>https://medium.com/@haleemastudy?source=rss-97ff2f17ed76------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2aYWcu5VskfV15iW</url>
            <title>Stories by UL. Haleema 2020ICTS068 on Medium</title>
            <link>https://medium.com/@haleemastudy?source=rss-97ff2f17ed76------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:05:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@haleemastudy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Data types of c ++]]></title>
            <link>https://medium.com/@haleemastudy/data-types-of-c-8059d7902708?source=rss-97ff2f17ed76------2</link>
            <guid isPermaLink="false">https://medium.com/p/8059d7902708</guid>
            <dc:creator><![CDATA[UL. Haleema 2020ICTS068]]></dc:creator>
            <pubDate>Wed, 12 Oct 2022 16:37:19 GMT</pubDate>
            <atom:updated>2022-10-12T16:37:19.223Z</atom:updated>
            <content:encoded><![CDATA[<p>All variable use data type during declaration to restrict the type of data to be stored. therefore we can say that data types are used to tell the variables the type of data it can stored. whenever a variable is defined in c ++ the compiler allocates some memory for that variable based on the data type with which it is declared. every data type requires a different amount of memory. Data types specify the size and types of value to be stored.</p><p><em>c ++ supports the following data types</em></p><h4><strong><em>1} Fundamental data types</em></strong></h4><h4><strong><em>2} User defined data type</em></strong></h4><h4>1} Fundamental data types:-</h4><p>fundamental data types are the data data type which are predefined in the language and can be directly used to declare a variable in c ++.</p><p>the various fundamental data types are:-</p><ol><li><strong><em>short</em></strong></li><li><strong><em>int (integer)</em></strong></li><li><strong><em>float ( floating point)</em></strong></li><li><strong><em>double ( double floating point)</em></strong></li><li><strong><em>bool (boolean)</em></strong></li><li><strong><em>char (character)</em></strong></li></ol><h4>2} User defined data type</h4><p>The data types that are defined by the user are called the derived data type or user defined derived data type.</p><ol><li><strong><em>string</em></strong></li></ol><h4>1} Fundamental data types</h4><h4><strong>1.short</strong></h4><p><em>stores:- an integer</em></p><p><em>range:- -32 768 to 32 767</em></p><p><em>memory required:- 2 bytes</em></p><h4><strong>2. int</strong></h4><p><em>stores:- an integer</em></p><p><em>range:- -2 147 683 648 to 2 147 838 647</em></p><p><em>memory required:- 4bytes</em></p><p><strong>Example-</strong></p><p>#include &lt;iostream&gt;</p><p>using namespace std;</p><p>int main()</p><p>{</p><p>int x;</p><p>cout &lt;&lt;”type a number :”&lt;&lt;”\n”;</p><p>cin &gt;&gt; x;</p><p>cout &lt;&lt; “your number is : “&lt;&lt; x &lt;&lt;”\n”;</p><p>return 0;</p><p>}</p><h4><strong>3. float</strong></h4><p><em>stores:- a real number with 7 digits of precision.</em></p><p><em>range:- -3.4E -38 to 3.4E +38</em></p><p><em>memory required:- 4bytes</em></p><p><strong>Example:</strong></p><p>#include&lt;iostream&gt;</p><p>using namespace std;</p><p>int main()</p><p>{</p><p>float distance = 1.6758;</p><p>cout &lt;&lt;”distance = “&lt;&lt; distance&lt;&lt;endl;</p><p>return 0;</p><p>}</p><h4><strong>4.double</strong></h4><p><em>stores:- a real number with 15 digits of precision.</em></p><p><em>range:- -1.7E -308 to 1.7E +308</em></p><p><em>memory required:- 8bytes</em></p><p><strong>Example:</strong></p><p>#include&lt;iostream&gt;</p><p>using namespace std;</p><p>int main()</p><p>{</p><p>double float distance = 1.986E9;</p><p>cout &lt;&lt;”distance = “&lt;&lt; distance&lt;&lt;endl;</p><p>return 0;</p><p>}</p><h4><strong>5.bool</strong></h4><p><em>stores:- a boolean value either true or false</em></p><p><em>memory required:- 1byte</em></p><p><strong>Example:</strong></p><p>#include&lt;iostream&gt;</p><p>using namespace std;</p><p>int main()</p><p>{</p><p>bool h =22;</p><p>bool r =25;</p><p>cout&lt;&lt;h&lt;&lt;endl;</p><p>cout&lt;&lt;r&lt;&lt;endl;</p><p>return 0;</p><p>}</p><h4><strong>6. char</strong></h4><p><em>stores:- one character</em></p><p><em>memory required:- 1byte</em></p><p><strong>Example:</strong></p><p>#include &lt;iostream&gt;</p><p>using namespace std;</p><p>int main()</p><p>{</p><p>char grade = ‘A’;</p><p>cout &lt;&lt; “My result is “&lt;&lt;grade;</p><p>return 0;</p><p>}</p><h4><strong>2}User defined data type</strong></h4><h4><strong>1.string</strong></h4><p><em>stores:- zero or more character</em></p><p><em>memory required:- 1 byte per character</em></p><p><strong>Example:</strong></p><p>#include &lt;iostream&gt;</p><p>using namespace std;</p><p>int main ()</p><p>{</p><p>cout&lt;&lt;”My name is Haleema \n”;</p><p>cout&lt;&lt;”I’m 21 years old \n”;</p><p>return 0;</p><p>}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8059d7902708" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>