Question: 12.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"><pre class="de1"><span class="co2">#include &lt;cmath&gt; </span> <span class="co2">#include &lt;iostream&gt; </span> using namespace std<span class="sy0">;</span> <span class="kw4">void</span> Cipher<span class="br0">(</span>string str<span class="br0">)</span> <span class="br0">{</span> <span class="kw4">int</span> r<span class="sy0">,</span> c<span class="sy0">;</span> <span class="kw1">for</span> <span class="br0">(</span><span class="kw4">int</span> i <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> str<span class="br0">[</span>i<span class="br0">]</span><span class="sy0">;</span> i<span class="sy0">++</span><span class="br0">)</span> <span class="br0">{</span> &nbsp; r <span class="sy0">=</span> <span class="kw3">ceil</span><span class="br0">(</span><span class="br0">(</span>str<span class="br0">[</span>i<span class="br0">]</span> <span class="sy0">-</span> <span class="st0">'a'</span><span class="br0">)</span> <span class="sy0">/</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">+</span> <span class="nu0">1</span><span class="sy0">;</span> &nbsp; &nbsp; c <span class="sy0">=</span> <span class="br0">(</span><span class="br0">(</span>str<span class="br0">[</span>i<span class="br0">]</span> <span class="sy0">-</span> <span class="st0">'a'</span><span class="br0">)</span> <span class="sy0">%</span> <span class="nu0">5</span><span class="br0">)</span> <span class="sy0">+</span> <span class="nu0">1</span><span class="sy0">;</span> &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">(</span>str<span class="br0">[</span>i<span class="br0">]</span> <span class="sy0">==</span> <span class="st0">'k'</span><span class="br0">)</span> <span class="br0">{</span> r <span class="sy0">=</span> r <span class="sy0">-</span> <span class="nu0">1</span><span class="sy0">;</span> c <span class="sy0">=</span> <span class="nu0">5</span> <span class="sy0">-</span> c <span class="sy0">+</span> <span class="nu0">1</span><span class="sy0">;</span> <span class="br0">}</span> &nbsp; &nbsp; <span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">(</span>str<span class="br0">[</span>i<span class="br0">]</span> <span class="sy0">&gt;=</span> <span class="st0">'j'</span><span class="br0">)</span> <span class="br0">{</span> <span class="kw1">if</span> <span class="br0">(</span>c <span class="sy0">==</span> <span class="nu0">1</span><span class="br0">)</span> <span class="br0">{</span> c <span class="sy0">=</span> <span class="nu0">6</span><span class="sy0">;</span> r <span class="sy0">=</span> r <span class="sy0">-</span> <span class="nu0">1</span><span class="sy0">;</span> <span class="br0">}</span> c <span class="sy0">=</span> c <span class="sy0">-</span> <span class="nu0">1</span><span class="sy0">;</span> <span class="br0">}</span> cout <span class="sy0">&lt;&lt;</span> r <span class="sy0">&lt;&lt;</span> c<span class="sy0">;</span> <span class="br0">}</span> cout <span class="sy0">&lt;&lt;</span> endl<span class="sy0">;</span> <span class="br0">}</span> &nbsp; <span class="kw4">int</span> main<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span> string str <span class="sy0">=</span> <span class="st0">"nsit"</span><span class="sy0">;</span> Cipher<span class="br0">(</span>str<span class="br0">)</span><span class="sy0">;</span> <span class="br0">}</span></pre></div></div></div></div></div></div>
Options:
33344244
44332434
33432444
11444323
Answer: B