<?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>find output of c program with answers - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/find-output-of-c-program-with-answers/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/find-output-of-c-program-with-answers/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Fri, 03 Sep 2021 05:33:15 +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>find output of c program with answers - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/find-output-of-c-program-with-answers/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Find the output : function modify(a,b) { Integer c,d=2 c= a*d+ b return c } Function calculate () { Integer a = 5, b = 20, c Integer d= 10 c = modify (a, b); c = c+ d Print c }</title>
		<link>https://www.wikitechy.com/interview-questions/function-and-scope/find-the-output-function-modifyab-integer-cd2-c-ad-b-return-c-function-calculate-integer-a-5-b-20-c-integer-d-10-c-modify-a-b-c-c-d-print-c/</link>
					<comments>https://www.wikitechy.com/interview-questions/function-and-scope/find-the-output-function-modifyab-integer-cd2-c-ad-b-return-c-function-calculate-integer-a-5-b-20-c-integer-d-10-c-modify-a-b-c-c-d-print-c/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sat, 28 Aug 2021 17:29:11 +0000</pubDate>
				<category><![CDATA[Function and Scope]]></category>
		<category><![CDATA[c programming functions exercises]]></category>
		<category><![CDATA[Consider the following code:Function modify]]></category>
		<category><![CDATA[Consider the following code:Function modify { Integer c]]></category>
		<category><![CDATA[d=2]]></category>
		<category><![CDATA[find output of c program]]></category>
		<category><![CDATA[find output of c program with answers]]></category>
		<category><![CDATA[find the output of c program questions]]></category>
		<category><![CDATA[find the output of the following c program]]></category>
		<category><![CDATA[function in c programming examples]]></category>
		<category><![CDATA[functions in c programming]]></category>
		<category><![CDATA[output of c program examples]]></category>
		<category><![CDATA[return -1 in c programming]]></category>
		<category><![CDATA[syntax of function in c]]></category>
		<category><![CDATA[TCS Ninja Coding Questions with Answers | TCS Ninja Coding Questions 2021 | TCS Ninja Programming MCQ Questions]]></category>
		<category><![CDATA[types of functions in c]]></category>
		<category><![CDATA[user defined functions in c]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2654</guid>

					<description><![CDATA[Answer : B . 40]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Find the output :</p>
<div class="CodeContent">
<div class="hddn">
<figure class="highlight">
<pre><code id="code1" class="hljs javascript" data-lang=""><span class="nt"><span class="hljs-built_in">Function</span> modify (a , b) 
{
      Integer c , d = <span class="hljs-number">2</span> 
      c= a * d + b 
      <span class="hljs-keyword">return</span> c 
}

<span class="hljs-built_in">Function</span> calculate () 
{
     Integer a = <span class="hljs-number">5</span>, b = <span class="hljs-number">20</span>, c 
     Integer d = <span class="hljs-number">10</span> 
     c = modify (a, b); 
     c = c + d 
     Print c
 }</span></code></pre>
</figure>
</div>
</div>
<div class="row">
<div class="col-sm-6">A . 80</div>
<div class="col-sm-6">
<p>B . 40</p>
</div>
<div class="col-sm-6">
<p>C . 32</p>
</div>
<div class="col-sm-6">
<p>D . 72</p>
</div>
</div>
</div>
</div>
<h3 id="answer-b-40"><b>Answer : </b>B . 40</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>c = ?</ul>
</li>
</ul>
<ul>
<li style="list-style-type: none;">
<ul>d = 2</ul>
</li>
</ul>
<ul>
<li style="list-style-type: none;">
<ul>c = a * d + b</ul>
</li>
</ul>
<ul>
<li style="list-style-type: none;">
<ul>c = a * 2 + b then a = 5 b = 20</ul>
</li>
</ul>
<ul>
<li style="list-style-type: none;">
<ul>c = ?</ul>
</li>
</ul>
<ul>
<li style="list-style-type: none;">
<ul>c = c + d</ul>
</li>
</ul>
<ul>
<li style="list-style-type: none;">
<ul>c = a * 2 + b + d</ul>
</li>
</ul>
<ul>c = 5 * 2 + 20 + 10 = 40</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/function-and-scope/find-the-output-function-modifyab-integer-cd2-c-ad-b-return-c-function-calculate-integer-a-5-b-20-c-integer-d-10-c-modify-a-b-c-c-d-print-c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
