<?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>malloc vs calloc vs realloc - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/malloc-vs-calloc-vs-realloc/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/malloc-vs-calloc-vs-realloc/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Tue, 14 Sep 2021 06:23:08 +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>malloc vs calloc vs realloc - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/malloc-vs-calloc-vs-realloc/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Pick out the odd one out of the following malloc(), calloc(), free(), realloc() ?</title>
		<link>https://www.wikitechy.com/interview-questions/c/pick-out-the-odd-one-out-of-the-following-malloc-calloc-free-realloc/</link>
					<comments>https://www.wikitechy.com/interview-questions/c/pick-out-the-odd-one-out-of-the-following-malloc-calloc-free-realloc/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 19:45:16 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Accentur interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Asian Paints Ltd. interview questions and answers]]></category>
		<category><![CDATA[Bosch India Software interview questions and answers]]></category>
		<category><![CDATA[C Memory Allocation Using malloc()]]></category>
		<category><![CDATA[C Programming Language: Functions malloc()]]></category>
		<category><![CDATA[calloc and malloc in c]]></category>
		<category><![CDATA[calloc()]]></category>
		<category><![CDATA[calloc() versus malloc()]]></category>
		<category><![CDATA[calloc() versus malloc()Difference between malloc]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[DHFL Pramerica Life Insurance Company Ltd interview questions and answers]]></category>
		<category><![CDATA[Difference between malloc]]></category>
		<category><![CDATA[difference between malloc and calloc in c]]></category>
		<category><![CDATA[dynamic memory allocation in c]]></category>
		<category><![CDATA[Dynamic memory allocation in C : Learn to use calloc]]></category>
		<category><![CDATA[dynamic memory allocation in c example]]></category>
		<category><![CDATA[dynamic memory allocation in c programming examples]]></category>
		<category><![CDATA[dynamic memory allocation in data structure]]></category>
		<category><![CDATA[Elico HealthCare Services Ltd interview questions and answers]]></category>
		<category><![CDATA[Explain malloc()]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[free and realloc functions]]></category>
		<category><![CDATA[free() & realloc()]]></category>
		<category><![CDATA[HCL Technol interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[malloc]]></category>
		<category><![CDATA[malloc calloc realloc]]></category>
		<category><![CDATA[malloc vs calloc vs realloc]]></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[R Systems interview questions and answers]]></category>
		<category><![CDATA[Raqmiyat Information Technologies Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[realloc]]></category>
		<category><![CDATA[realloc() and free() in C LanguageC dynamic memory allocation]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Tata AIA Life Insurance interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindr interview questions and answers]]></category>
		<category><![CDATA[The Linde Group interview questions and answers]]></category>
		<category><![CDATA[zenq interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=309</guid>

					<description><![CDATA[Answer : free()..]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="pick-out-the-odd-one-out-of-the-following-malloc-calloc-free-realloc" class="color-pink" style="text-align: justify;">Pick out the odd one out of the following malloc(), calloc(), free(), realloc() ?</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>free()</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="explanation">Explanation:</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Here malloc(), calloc(), realloc() are the memory allocation function. whereas free() is used to free the memory which is allocated by the above function.</li>
<li>so the free() is odd term.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="malloc" class="color-green">malloc()</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The function malloc() reserves a block of memory of specified size and return a pointer of type void which can be casted into pointer of any form.</li>
<li>It allocates single block of memory</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"></div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="calloc" class="color-green">calloc()</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>calloc() allocates multiple blocks of memory each of same size and sets all bytes to zero.</li>
<li>It allocates space for an array elements, initializes to zero and then returns a pointer to memory.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="realloc" class="color-green">realloc()</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>If suppose we assigned more or less memory than required, then we can change the size of the previously assigned memory space using realloc.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="free" class="color-green">free()</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">The function free is used to deallocate or free the memory after the program finishes which was dynamically allocated in the program.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/c/pick-out-the-odd-one-out-of-the-following-malloc-calloc-free-realloc/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
