{"id":3081,"date":"2024-05-10T11:37:50","date_gmt":"2024-05-10T11:37:50","guid":{"rendered":"https:\/\/www.skillvertex.com\/blog\/?p=3081"},"modified":"2024-05-10T11:37:50","modified_gmt":"2024-05-10T11:37:50","slug":"what-will-be-the-output-of-the-following-program","status":"publish","type":"post","link":"https:\/\/www.skillvertex.com\/blog\/what-will-be-the-output-of-the-following-program\/","title":{"rendered":"What Will Be The Output Of The Following Program?"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\n\nint c&#91;10] = {1,2,3,4,5,6,7,8,9,10};  \n\nmain()\n\n{\n\n   int a, b=0;\n\n   for(a=0;a&lt;10;++a)\n\n      if(c&#91;a]%2 == 1)\n\n         b+=c&#91;a];\n\n   printf(\"%d\", b);\n\n}<\/code><\/pre>\n\n\n\n<p>A) 20<\/p>\n\n\n\n<p>B) 24<\/p>\n\n\n\n<p>C) 25<\/p>\n\n\n\n<p>D) 30<\/p>\n\n\n\n<p>E) None of these<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Will Be The Output Of The Following Program?<\/h2>\n\n\n\n<p>Ans. Option C) 25 is the Correct Answer.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A) 20 B) 24 C) 25 D) 30 E) None of these What Will Be The Output Of The Following Program? Ans. Option C) 25 is the Correct Answer.<\/p>\n","protected":false},"author":4,"featured_media":3083,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[224],"tags":[509],"class_list":["post-3081","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-question-answer","tag-what-will-be-the-output-of-the-following-program","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"_links":{"self":[{"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/posts\/3081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/comments?post=3081"}],"version-history":[{"count":2,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/posts\/3081\/revisions"}],"predecessor-version":[{"id":3085,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/posts\/3081\/revisions\/3085"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/media\/3083"}],"wp:attachment":[{"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/media?parent=3081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/categories?post=3081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/tags?post=3081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}