<?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>address of operators | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/address-of-operators/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 14:01:51 +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>Operations on Pointers-Part I</title>
		<link>https://studentprojects.in/software-development/cpp/operations-on-pointers-part-i/</link>
					<comments>https://studentprojects.in/software-development/cpp/operations-on-pointers-part-i/#respond</comments>
		
		<dc:creator><![CDATA[Shubhajna Rai]]></dc:creator>
		<pubDate>Sat, 31 Dec 2022 02:03:00 +0000</pubDate>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[operations on pointers]]></category>
		<category><![CDATA[address of operators]]></category>
		<category><![CDATA[Indirection operator]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=10055</guid>

					<description><![CDATA[<p>Address of Operator (&#38;): &#38; is sometimes referred to as the Referencing Operator. It&#8217;s a one-of-a-kind operator. The variable name that is used in conjunction with the Address of operator must be the name of a previously declared variable. Using the &#38; operator with a variable returns the variable&#8217;s address number. Here&#8217;s an example of</p>
<p>The post <a href="https://studentprojects.in/software-development/cpp/operations-on-pointers-part-i/">Operations on Pointers-Part I</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<h3>Address of Operator (&amp;):</h3>



<p>&amp; is sometimes referred to as the Referencing Operator. It&#8217;s a one-of-a-kind operator. The variable name that is used in conjunction with the Address of operator must be the name of a previously declared variable.</p>



<p>Using the &amp; operator with a variable returns the variable&#8217;s address number.</p>



<p>Here&#8217;s an example of how the operator&#8217;s address can be used.</p>



<pre class="wp-block-code"><code lang="cpp" class="language-cpp">#include &lt;iostream&gt;
using namespace std;
 
int main()
{
    int a = 10;
    cout &lt;&lt; "Address of variable a is " &lt;&lt; &amp;a &lt;&lt; endl;
    return 0;
}
</code></pre>



<p>Output:</p>



<p>0x61febc</p>



<h3>The Indirection Operator</h3>



<p>&nbsp;* is also known as the Dereferencing Operator. It is a unary operator. It takes an address as an argument and returns the content/container whose address is the argument.</p>



<p>Here&#8217;s one example of how to utilise the indirection operator.</p>



<pre class="wp-block-code"><code lang="cpp" class="language-cpp">#include &lt;iostream&gt;
using namespace std;
 
int main()
{
    int a = 100;
    cout &lt;&lt; "Value of variable a stored at address " &lt;&lt; &amp;a &lt;&lt; " is " &lt;&lt; (*(&amp;a)) &lt;&lt; endl;
    return 0;
}
</code></pre>



<p>Output</p>



<p>Value of variable a stored at address 0x61febc is 100</p><p>The post <a href="https://studentprojects.in/software-development/cpp/operations-on-pointers-part-i/">Operations on Pointers-Part I</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/cpp/operations-on-pointers-part-i/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
