<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Reference on Cheat Sheet</title><link>/tags/reference/</link><description>Recent content in Reference on Cheat Sheet</description><generator>Hugo</generator><language>en</language><atom:link href="/tags/reference/index.xml" rel="self" type="application/rss+xml"/><item><title>Variables and Basic Types</title><link>/programming/cpp/primer/variables-and-basic-types/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/programming/cpp/primer/variables-and-basic-types/</guid><description>&lt;h1 id="variables-and-basic-types"&gt;Variables and Basic Types&lt;a class="anchor" href="#variables-and-basic-types"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Based on &lt;em&gt;C++ Primer, 5th ed.&lt;/em&gt; Chapter 2 (Variables and Basic Types).&lt;/p&gt;
&lt;h2 id="type-definition"&gt;Type Definition&lt;a class="anchor" href="#type-definition"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The type of an object defines the &lt;strong&gt;data&lt;/strong&gt; that an object might contain and what &lt;strong&gt;operations&lt;/strong&gt; that object can perform. Among the operations that many types support is the ability to &lt;strong&gt;convert&lt;/strong&gt; objects of the given type to other, related types.&lt;/p&gt;
&lt;h2 id="string-literal"&gt;String Literal&lt;a class="anchor" href="#string-literal"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The type of a string literal is &lt;code&gt;const char *&lt;/code&gt;. See &lt;a href="../../programming/c/c-vs-cpp/#string-literal-typing"&gt;String Literal Typing&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>