<?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 programming questions and answers - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/c-programming-questions-and-answers/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/c-programming-questions-and-answers/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Mon, 20 Sep 2021 10:49:37 +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 programming questions and answers - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/c-programming-questions-and-answers/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Given : integer x = 40, y = 35, z = 20, w = 10. Comment about the output of the following two statements ? print x * y / z &#8211; w print x * y / (z &#8211; w)</title>
		<link>https://www.wikitechy.com/interview-questions/programming/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:33:02 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[AMCAT Question Papers with Answers]]></category>
		<category><![CDATA[basic c programming interview questionsc programming viva questions and answers]]></category>
		<category><![CDATA[basic c programming questions]]></category>
		<category><![CDATA[c language programming questions]]></category>
		<category><![CDATA[c programming interview programs]]></category>
		<category><![CDATA[c programming interview questions and answers]]></category>
		<category><![CDATA[c programming mcq with answers]]></category>
		<category><![CDATA[c programming multiple choice questions and answers]]></category>
		<category><![CDATA[c programming practice questions]]></category>
		<category><![CDATA[c programming problems and solutions]]></category>
		<category><![CDATA[c programming questions and answers]]></category>
		<category><![CDATA[c programming questions and answers objective type]]></category>
		<category><![CDATA[Computer Programming o No error the program is correctGiven: integer x = 40]]></category>
		<category><![CDATA[Given integer x 40 y 35 z 20 w 10 Comment about the output]]></category>
		<category><![CDATA[google programming interview questions]]></category>
		<category><![CDATA[programming aptitude questions]]></category>
		<category><![CDATA[programming interview problems]]></category>
		<category><![CDATA[programming technical interview questions]]></category>
		<category><![CDATA[simple programming questions]]></category>
		<category><![CDATA[string programming interview questions]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2575</guid>

					<description><![CDATA[Answer : A. Differ by 80]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Given : integer x = 40, y = 35, z = 20, w = 10. Comment about the output of the following two statements:<br />
print x * y / z – w<br />
print x * y / (z – w) ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Differ by 80</p>
</div>
<div class="col-sm-6">
<p>B. Same</p>
</div>
<div class="col-sm-6">
<p>C. Differ by 50</p>
</div>
<div class="col-sm-6">
<p>D. Differ by 160</p>
</div>
</div>
</div>
</div>
<h3 id="answer-a-differ-by-80"><b>Answer : </b>A. Differ by 80</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<p align="justify">print x * y / z – w = 40 * 35 / 20 &#8211; 10 = 60<br />
print x * y / (z – w) = 40 * 35 / ( 20 &#8211; 10 ) = 140<br />
Difference is 80</p>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>I have a problem to solve that takes n as an input number. The problem has a property that given the solution for (n-1) ? I can easily solve the problem for n. Which programming technique will I use to solve such a problem ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:29:47 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[AMCAT Question Papers with Answers]]></category>
		<category><![CDATA[basic programming interview questions]]></category>
		<category><![CDATA[basic programming questions]]></category>
		<category><![CDATA[c programming basic questions and answers]]></category>
		<category><![CDATA[c programming interview questions]]></category>
		<category><![CDATA[c programming questions and answers]]></category>
		<category><![CDATA[C++ Programming Questions]]></category>
		<category><![CDATA[computer programming questions]]></category>
		<category><![CDATA[how to practice programming]]></category>
		<category><![CDATA[object oriented programming interview questions]]></category>
		<category><![CDATA[programming interview]]></category>
		<category><![CDATA[programming interview questions]]></category>
		<category><![CDATA[programming interview questions and answers]]></category>
		<category><![CDATA[programming interview questions and answers for experienced]]></category>
		<category><![CDATA[programming interview questions and answers for freshers]]></category>
		<category><![CDATA[programming interviews exposed]]></category>
		<category><![CDATA[programming mcq questions with answers]]></category>
		<category><![CDATA[programming practice]]></category>
		<category><![CDATA[programming practice questions]]></category>
		<category><![CDATA[programming problems]]></category>
		<category><![CDATA[programming questions]]></category>
		<category><![CDATA[programming quiz]]></category>
		<category><![CDATA[programming tests for interviews]]></category>
		<category><![CDATA[programming topics]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2574</guid>

					<description><![CDATA[Answer : D. Recursion]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">I have a problem to solve that takes n as an input number. The problem has a property that given the solution for (n-1), I can easily solve the problem for n. Which programming technique will I use to solve such a problem ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Iteration</p>
</div>
<div class="col-sm-6">
<p>B. Decision-making</p>
</div>
<div class="col-sm-6">
<p>C. Object Oriented Programming</p>
</div>
<div class="col-sm-6">
<p>D. Recursion</p>
</div>
</div>
</div>
</div>
<h3 id="answer-d-recursion"><b>Answer : </b>D. Recursion</h3>
<div class="subheading">
<h2 id="explanation">Explanation</h2>
</div>
<div class="Content">
<div class="hddn">
<p align="justify">Recursion(the repeated application of a recursive procedure) solve the problem has a property that given the solution for (n-1).</p>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/i-have-a-problem-to-solve-that-takes-n-as-an-input-number-the-problem-has-a-property-that-given-the-solution-for-n-1-i-can-easily-solve-the-problem-for-n-which-programming-technique-will-i-use-t/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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>
	</channel>
</rss>
