<?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>inline constexpr - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/inline-constexpr/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/inline-constexpr/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Tue, 14 Sep 2021 05:37:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>inline constexpr - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/inline-constexpr/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What are the advantages and disadvantages of using inline and const ?</title>
		<link>https://www.wikitechy.com/interview-questions/cpp/what-are-the-advantages-and-disadvantages-of-using-inline-and-const/</link>
					<comments>https://www.wikitechy.com/interview-questions/cpp/what-are-the-advantages-and-disadvantages-of-using-inline-and-const/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 21:52:36 +0000</pubDate>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[advantages and disadvantages of inline function in c++]]></category>
		<category><![CDATA[Advantages of const in C++ ?]]></category>
		<category><![CDATA[Advantages of inline functions - C++]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Benefits of inline functions in C++ ?]]></category>
		<category><![CDATA[Benefits of using const functions - C / C++]]></category>
		<category><![CDATA[BMC Software interview questions and answers]]></category>
		<category><![CDATA[Bosch India Software interview questions and answers]]></category>
		<category><![CDATA[c const]]></category>
		<category><![CDATA[c const pointer]]></category>
		<category><![CDATA[c constant]]></category>
		<category><![CDATA[c inline]]></category>
		<category><![CDATA[c++ implicit inline]]></category>
		<category><![CDATA[c++ inline a variable]]></category>
		<category><![CDATA[c++ inline class]]></category>
		<category><![CDATA[c++ inline const variable]]></category>
		<category><![CDATA[c++ inline function declaration]]></category>
		<category><![CDATA[c++ inline global function]]></category>
		<category><![CDATA[c++ inline linkage]]></category>
		<category><![CDATA[c++ inline member function]]></category>
		<category><![CDATA[c++ inline variable]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Const Functions]]></category>
		<category><![CDATA[const pointer]]></category>
		<category><![CDATA[constants and variables]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Disadvantage]]></category>
		<category><![CDATA[eInfochips interview questions and answers]]></category>
		<category><![CDATA[Electronics Arts Inc interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Harman International interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Inline and const functions (C++)]]></category>
		<category><![CDATA[inline constexpr]]></category>
		<category><![CDATA[inline constexpr variable]]></category>
		<category><![CDATA[inline declaration c++]]></category>
		<category><![CDATA[inline definition]]></category>
		<category><![CDATA[inline function]]></category>
		<category><![CDATA[Inline function Advantages]]></category>
		<category><![CDATA[inline function in c]]></category>
		<category><![CDATA[Inline Functions in C++]]></category>
		<category><![CDATA[inline variable c#]]></category>
		<category><![CDATA[Larsen & Toubro interview questions and answers]]></category>
		<category><![CDATA[like virtual void Function()]]></category>
		<category><![CDATA[Mathworks India Private Limited interview questions and answers]]></category>
		<category><![CDATA[Mavenir interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Philips Software Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[SRM Technologies interview questions and answers]]></category>
		<category><![CDATA[static inline]]></category>
		<category><![CDATA[Symphony Teleca interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[Tecnotree interview questions and answers]]></category>
		<category><![CDATA[What are the advantages and disadvantages of inline function ?]]></category>
		<category><![CDATA[What are the advantages of using const ?]]></category>
		<category><![CDATA[what is inline function]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<category><![CDATA[Wipro interview questions and answers]]></category>
		<category><![CDATA[Yash Technologies interview questions and answers]]></category>
		<category><![CDATA[zimmer biomet interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=353</guid>

					<description><![CDATA[Answers : Advantages of inline....]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="what-are-the-advantages-and-disadvantages-of-using-inline-and-const" class="color-pink" style="text-align: justify;">What are the advantages and disadvantages of using inline and const</h2>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="inline" class="color-green">Inline:</h2>
</div>
<p style="text-align: justify;"><b>Advantages:</b></p>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>It does not require function calling overhead.</li>
<li>It additionally save overhead of variables push/pop on the stack, while function calling.</li>
<li>It also save overhead of return call from a function.</li>
<li>It increases locality of reference by utilizing instruction cache.</li>
<li>Inline function may be useful (if it is small) for embedded systems because inline can yield less code than the function call outline and return.</li>
</ul>
</div>
</div>
<p style="text-align: justify;"><b>Disadvantages:</b></p>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>If you use too many inline functions then the size of the binary executable file will be large, because of the duplication of same code.</li>
<li>Too much inlining can also reduce your instruction cache hit rate, thus reducing the speed of instruction fetch from that of cache memory to that of primary memory.</li>
<li>It may cause compilation overhead as if somebody changes code inside inline function than all calling location will also be compiled.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"></div>
<div class="subheading" style="text-align: justify;">
<h2 id="const" class="color-green">Const:</h2>
</div>
<p style="text-align: justify;"><b>Advantages:</b></p>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>If you want any variable to keep constant through out the program then you can use const keyword.</li>
<li>It is stored in the read only of the initalized data segment , even the pointer storing it&#8217;s location cannot change the value of it, pointer can just change the address to point at some other location.</li>
</ul>
</div>
</div>
<p style="text-align: justify;"><b>Disadvantages:</b></p>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">As the const is not flexible so mostly people use #define which is more flexible than const.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/cpp/what-are-the-advantages-and-disadvantages-of-using-inline-and-const/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
