Question: 11. What will be the output of the following C code?<div class="hk1_style-wrap4"><div class="hk1_style-wrap3"><div class="hk1_style-wrap2"><div class="hk1_style-wrap"><div class="hk1_style"><div class="c"><ol><li class="li1"><pre class="de1"> <span class="co2">#include &lt;stdio.h&gt;</span></pre></li><li class="li1"><pre class="de1"> <span class="kw4">void</span> <span class="br0">(</span><span class="sy0">*</span><span class="br0">(</span>f<span class="br0">)</span><span class="br0">(</span><span class="br0">)</span><span class="br0">)</span><span class="br0">(</span><span class="kw4">int</span><span class="sy0">,</span> <span class="kw4">float</span><span class="br0">)</span><span class="sy0">;</span></pre></li><li class="li1"><pre class="de1"> <span class="kw4">typedef</span> <span class="kw4">void</span> <span class="br0">(</span><span class="sy0">*</span><span class="br0">(</span><span class="sy0">*</span>x<span class="br0">)</span><span class="br0">(</span><span class="br0">)</span><span class="br0">)</span><span class="br0">(</span><span class="kw4">int</span><span class="sy0">,</span> <span class="kw4">float</span><span class="br0">)</span><span class="sy0">;</span></pre></li><li class="li1"><pre class="de1"> <span class="kw4">void</span> foo<span class="br0">(</span><span class="kw4">int</span> i<span class="sy0">,</span> <span class="kw4">float</span> f<span class="br0">)</span><span class="sy0">;</span></pre></li><li class="li1"><pre class="de1"> <span class="kw4">int</span> main<span class="br0">(</span><span class="br0">)</span></pre></li><li class="li1"><pre class="de1"> <span class="br0">{</span></pre></li><li class="li1"><pre class="de1"> x p <span class="sy0">=</span> f<span class="sy0">;</span></pre></li><li class="li1"><pre class="de1"> p<span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span></pre></li><li class="li1"><pre class="de1"> <span class="br0">}</span></pre></li><li class="li1"><pre class="de1"> <span class="kw4">void</span> <span class="br0">(</span><span class="sy0">*</span><span class="br0">(</span>f<span class="br0">)</span><span class="br0">(</span><span class="br0">)</span><span class="br0">)</span><span class="br0">(</span><span class="kw4">int</span><span class="sy0">,</span> <span class="kw4">float</span><span class="br0">)</span></pre></li><li class="li1"><pre class="de1"> <span class="br0">{</span></pre></li><li class="li1"><pre class="de1"> <span class="kw1">return</span> foo<span class="sy0">;</span></pre></li><li class="li1"><pre class="de1"> <span class="br0">}</span></pre></li><li class="li1"><pre class="de1"> <span class="kw4">void</span> foo<span class="br0">(</span><span class="kw4">int</span> i<span class="sy0">,</span> <span class="kw4">float</span> f<span class="br0">)</span></pre></li><li class="li1"><pre class="de1"> <span class="br0">{</span></pre></li><li class="li1"><pre class="de1"> <span class="kw3">printf</span><span class="br0">(</span><span class="st0">"%d %f<span class="es1">\n</span>"</span><span class="sy0">,</span> i<span class="sy0">,</span> f<span class="br0">)</span><span class="sy0">;</span></pre></li><li class="li1"><pre class="de1"> <span class="br0">}</span></pre></li></ol></div></div></div></div></div></div>
Options:
Compile time error
Undefined behaviour
1 2.000000
Nothing
Answer: D