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

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>c interview questions - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/c-interview-questions/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Which of the following cannot be inherited ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/which-of-the-following-cannot-be-inherited/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/which-of-the-following-cannot-be-inherited/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:23:45 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[c interview questions]]></category>
		<category><![CDATA[c programming questions and answers]]></category>
		<category><![CDATA[c programming theory questions and answers]]></category>
		<category><![CDATA[c programming viva questions and answers]]></category>
		<category><![CDATA[c# What type of classes cannot be inherited in .NET]]></category>
		<category><![CDATA[c++ what we cannot inherit from a Base class]]></category>
		<category><![CDATA[coding interview questions]]></category>
		<category><![CDATA[interview questions to ask a computer programmer]]></category>
		<category><![CDATA[java interview questionsc programming interview questions and answers with explanations]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[Prevent class inheritance in C++]]></category>
		<category><![CDATA[programming interview questions and answers]]></category>
		<category><![CDATA[programming interview questions c#]]></category>
		<category><![CDATA[programming interview questions java]]></category>
		<category><![CDATA[programming technical interview questionsc programming interview questions and answers]]></category>
		<category><![CDATA[what is not inherited in c++]]></category>
		<category><![CDATA[What is not inherited in Java]]></category>
		<category><![CDATA[which class cannot be inherited in java]]></category>
		<category><![CDATA[Which class that cannot be inherited]]></category>
		<category><![CDATA[Which members are not inherited in a child class]]></category>
		<category><![CDATA[which of the following can be inherited by a derived class from a base class]]></category>
		<category><![CDATA[Which of the following cannot be inherited form base class]]></category>
		<category><![CDATA[Which of the following cannot be inherited from the base class]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2571</guid>

					<description><![CDATA[Answer : C. Destructor]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Which of the following cannot be inherited ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Friend</p>
</div>
<div class="col-sm-6">
<p>B. Static</p>
</div>
<div class="col-sm-6">
<p>C. Destructor</p>
</div>
<div class="col-sm-6">
<p>D. Constructor</p>
</div>
</div>
</div>
</div>
<h3 id="answer-c-destructor"><b>Answer : </b>C. Destructor</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li><b>Friend Class</b> &#8211; A friend class can access private and protected members of other class in which it is declared as friend. It is sometimes useful to allow a particular class to access private members of other class.</li>
<li><b>Constructor</b> &#8211; A constructor is a member function of a class which initializes objects of a class. In C++, Constructor is automatically called when object (instance of class) create. It is special member function of the class.</li>
<li><b>Static</b> &#8211; Static categories are sealed and thus can&#8217;t be transmissible. They can not inherit from any category except Object. Static categories cannot contain associate instance constructor. but, they will have a static builder.</li>
<li><b>Destructor</b> &#8211; Destructor is a member function which destructs or deletes an object.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/which-of-the-following-cannot-be-inherited/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Tarun wants to write code for his computer class homework but he had misheard the teacher and only can recollect remembering this 4 words. Which of the following is what he couldn’t have had heard ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/tarun-wants-to-write-code-for-his-computer-class-homework-but-he-had-misheard-the-teacher-and-only-can-recollect-remembering-this-4-words-which-of-the-following-is-what-he-couldnt-have-had-h/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/tarun-wants-to-write-code-for-his-computer-class-homework-but-he-had-misheard-the-teacher-and-only-can-recollect-remembering-this-4-words-which-of-the-following-is-what-he-couldnt-have-had-h/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:17:49 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[c interview questions]]></category>
		<category><![CDATA[c# interview questions and answers for freshers]]></category>
		<category><![CDATA[c++ inheritance practice questions]]></category>
		<category><![CDATA[important questions on inheritance in c++]]></category>
		<category><![CDATA[inheritance interview questions]]></category>
		<category><![CDATA[inheritance interview questions c#]]></category>
		<category><![CDATA[inheritance interview questions java]]></category>
		<category><![CDATA[inheritance output questions in c++]]></category>
		<category><![CDATA[inheritance practice problems]]></category>
		<category><![CDATA[java inheritance interview questions and answers]]></category>
		<category><![CDATA[java inheritance practice exercises]]></category>
		<category><![CDATA[java interview questions]]></category>
		<category><![CDATA[mcq on inheritance in c++ with answers]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[multiple inheritance in c# interview questions]]></category>
		<category><![CDATA[oops interview questions c++]]></category>
		<category><![CDATA[polymorphism interview questions in c#]]></category>
		<category><![CDATA[practical questions on inheritance in c++]]></category>
		<category><![CDATA[problems on inheritance in java]]></category>
		<category><![CDATA[programming exercises on inheritance in java]]></category>
		<category><![CDATA[programming questions on inheritance in c++]]></category>
		<category><![CDATA[programs on inheritance in c++]]></category>
		<category><![CDATA[questions on inheritance in c++]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2568</guid>

					<description><![CDATA[Answer : A. Distributive]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Tarun wants to write code for his computer class homework but he had misheard the teacher and only can recollect remembering this 4 words. Which of the following is what he couldn’t have had heard?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Distributive</p>
</div>
<div class="col-sm-6">
<p>B. Multilevel</p>
</div>
<div class="col-sm-6">
<p>C. Multiple</p>
</div>
<div class="col-sm-6">
<p>D. Hierarchical</p>
</div>
</div>
</div>
</div>
<h3 id="answer-a-distributive"><b>Answer : </b>A. Distributive</h3>
<div class="subheading">
<h2 id="explanation">Explanation:</h2>
</div>
<div class="subheading">
<h2 id="multiple-inheritance" class="color-green">Multiple Inheritance:</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>It refers to the concept of one class extending (Or inherits) more than one base class. The inheritance we learnt earlier had the concept of one base class or parent. The problem with “multiple inheritance” is that the derived class will have to manage the dependency on two base classes.</li>
</ul>
</div>
</div>
<div class="ImageContent">
<div class="hddn"><img decoding="async" class="img-responsive center-block" src="https://cdn.wikitechy.com/interview-questions/programming/multiple-inheritance.gif" alt="Multiple Inheritance" /></div>
</div>
<div class="subheading">
<h2 id="multilevel-inheritance" class="color-green">Multilevel Inheritance:</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>When a class extends a class, which extends anther class then this is called multilevel inheritance. For example class C extends class B and class B extends class A then this type of inheritance is known as multilevel inheritance.</li>
</ul>
</div>
</div>
<div class="ImageContent">
<div class="hddn"><img decoding="async" class="img-responsive center-block" src="https://cdn.wikitechy.com/interview-questions/programming/multi-level-inheritance.jpg" alt="Multilevel Inheritance" /></div>
</div>
<div class="subheading">
<h2 id="hierarchical-inheritance" class="color-green">Hierarchical Inheritance:</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>When more than one classes inherit a same class then this is called hierarchical inheritance. For example class B, C and D extends a same class A.</li>
</ul>
</div>
</div>
<div class="ImageContent">
<div class="hddn"><img decoding="async" class="img-responsive center-block" src="https://cdn.wikitechy.com/interview-questions/programming/heirarchical-inheritance.jpg" alt="Hierarchical Inheritance" /></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/tarun-wants-to-write-code-for-his-computer-class-homework-but-he-had-misheard-the-teacher-and-only-can-recollect-remembering-this-4-words-which-of-the-following-is-what-he-couldnt-have-had-h/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Write a function that takes an integer array as an input and find the largest number in the array. You cannot sort array or use any API or searching needs ?</title>
		<link>https://www.wikitechy.com/interview-questions/cpp/write-a-function-that-takes-an-integer-array-as-an-input-and-find-the-largest-number-in-the-array-you-cannot-sort-array-or-use-any-api-or-searching-needs/</link>
					<comments>https://www.wikitechy.com/interview-questions/cpp/write-a-function-that-takes-an-integer-array-as-an-input-and-find-the-largest-number-in-the-array-you-cannot-sort-array-or-use-any-api-or-searching-needs/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 22:02:37 +0000</pubDate>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[2d array c++]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[algorithm to find largest number in an array]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[array find]]></category>
		<category><![CDATA[array in c]]></category>
		<category><![CDATA[array in c programming]]></category>
		<category><![CDATA[array programs in java]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[BMC Software interview questions and answers]]></category>
		<category><![CDATA[Bosch India Software interview questions and answers]]></category>
		<category><![CDATA[c interview questions]]></category>
		<category><![CDATA[c program to find largest number in an array]]></category>
		<category><![CDATA[c program to find largest number in an array using function]]></category>
		<category><![CDATA[c program to find largest of n numbers]]></category>
		<category><![CDATA[c++ array class]]></category>
		<category><![CDATA[c++ array functions]]></category>
		<category><![CDATA[c++ program to find largest and second largest number in an array]]></category>
		<category><![CDATA[c++ program to find largest and smallest number in an array]]></category>
		<category><![CDATA[c++ program to find largest of n numbersdynamic array c++]]></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[cpp interview questions]]></category>
		<category><![CDATA[cpp interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[eInfochips interview questions and answers]]></category>
		<category><![CDATA[Electronics Arts Inc interview questions and answers]]></category>
		<category><![CDATA[find largest number in an array]]></category>
		<category><![CDATA[find largest number in array]]></category>
		<category><![CDATA[find largest number in array c++]]></category>
		<category><![CDATA[find largest number in array in java]]></category>
		<category><![CDATA[find largest number in array java]]></category>
		<category><![CDATA[find largest number in array javascript]]></category>
		<category><![CDATA[find largest number in java]]></category>
		<category><![CDATA[find second largest number in array in java]]></category>
		<category><![CDATA[find smallest number in array c++]]></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[java find largest number in list]]></category>
		<category><![CDATA[largest number formed from an array in clength of array c++]]></category>
		<category><![CDATA[Larsen & Toubro interview questions and answers]]></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[program to find largest number in an array]]></category>
		<category><![CDATA[return array c++string array c++]]></category>
		<category><![CDATA[SRM Technologies interview questions and answers]]></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[two dimensional array in c++ example]]></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[zycus infotech interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=358</guid>

					<description><![CDATA[Answer : #include<iostream>...]]></description>
										<content:encoded><![CDATA[<h4 id="write-a-function-that-takes-an-integer-array-as-an-input-and-find-the-largest-number-in-the-array-you-cannot-sort-array-or-use-any-api-or-searching-needs" class="color-pink" style="text-align: justify;">Write a function that takes an integer array as an input and find the largest number in the array. You cannot sort array or use any API or searching needs ?</h4>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-cpp code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-cpp code-embed-code">#include&lt;iostream&gt;<br/>using namespace std;<br/><br/>int main()<br/>{<br/>int name[5],big,i;<br/><br/>for(i=0; i&lt;=4; i++) {<br/>cout &lt;&lt; &quot;Enter a value&quot; &lt;&lt; i &lt;&lt; &quot;:&quot;;<br/>cin &gt;&gt; name[i];<br/>}<br/>cout &lt;&lt; &quot;name contains:&quot;;<br/>for(i=0; i&lt;=4; i++) {<br/>cout &lt;&lt; name[i]&lt;&lt; &quot;\n&quot;;<br/>}<br/><br/>big = name[0];<br/>for(i = 0; i &lt;= 4; i++) {<br/>if(name[i] &gt; big)<br/>big = name[i];<br/>}<br/><br/>cout &lt;&lt; &quot;The Bigest Number::&quot; &lt;&lt; big &lt;&lt; endl;<br/><br/>return 0;<br/>}</code></pre> </div>
<p style="text-align: justify;">
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/cpp/write-a-function-that-takes-an-integer-array-as-an-input-and-find-the-largest-number-in-the-array-you-cannot-sort-array-or-use-any-api-or-searching-needs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the Output ?</title>
		<link>https://www.wikitechy.com/interview-questions/c/what-is-the-output/</link>
					<comments>https://www.wikitechy.com/interview-questions/c/what-is-the-output/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 20:01:05 +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[basic c programs]]></category>
		<category><![CDATA[basics of c]]></category>
		<category><![CDATA[Bosch India Software interview questions and answers]]></category>
		<category><![CDATA[c c++ programs for interview]]></category>
		<category><![CDATA[c code]]></category>
		<category><![CDATA[c coding questions]]></category>
		<category><![CDATA[c interview questions]]></category>
		<category><![CDATA[c language]]></category>
		<category><![CDATA[c programming]]></category>
		<category><![CDATA[c programming basics]]></category>
		<category><![CDATA[c programming coding questions]]></category>
		<category><![CDATA[c programming examples]]></category>
		<category><![CDATA[c programming language]]></category>
		<category><![CDATA[c programming test questions]]></category>
		<category><![CDATA[c programming tricky questions]]></category>
		<category><![CDATA[c programming tutorial]]></category>
		<category><![CDATA[c programs with solutions]]></category>
		<category><![CDATA[c_language]]></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[computer programming]]></category>
		<category><![CDATA[cracking the coding interview]]></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[Elico HealthCare Services Ltd interview questions and answers]]></category>
		<category><![CDATA[examples of output devices]]></category>
		<category><![CDATA[factorial program in c]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></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[interview questions and answers]]></category>
		<category><![CDATA[learn c programming]]></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[output definition computer]]></category>
		<category><![CDATA[output devices of computer and their functions]]></category>
		<category><![CDATA[pattern programs asked in interview]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pointers in c]]></category>
		<category><![CDATA[programs asked in interview in java]]></category>
		<category><![CDATA[R Systems interview questions and answers]]></category>
		<category><![CDATA[Raqmiyat Information Technologies Pvt Ltd interview questions and answers]]></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[strings in c]]></category>
		<category><![CDATA[Tata AIA Life Insurance interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindr interview questions and answers]]></category>
		<category><![CDATA[the c programming language]]></category>
		<category><![CDATA[The Linde Group interview questions and answers]]></category>
		<category><![CDATA[what is output in computer]]></category>
		<category><![CDATA[zycus infotech interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=315</guid>

					<description><![CDATA[Answer : NULL...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="what-is-the-output" class="color-pink" style="text-align: justify;">What is the Output ?</h2>
</div>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight"><div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-c code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-c code-embed-code">main () <br/>  {<br/>  char *p1=&quot;Name&quot;; <br/>  char *p2; <br/>  p2=(char *)malloc(20); <br/>  while(*p2++=*p1++); <br/>  printf(&quot;%s\n&quot;,p2); <br/>  } </code></pre> </div></figure>
</div>
</div>
<p style="text-align: justify;"><b>Answer</b> : NULL</p>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">We are incrementing the pointers p1,p2.</li>
<li style="text-align: justify;">When it reached the end of the string, *p2 points to NULL.</li>
<li style="text-align: justify;">We have lost the address of the starting position.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/c/what-is-the-output/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
