<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":2654,"date":"2021-08-28T17:29:11","date_gmt":"2021-08-28T17:29:11","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=2654"},"modified":"2021-09-03T05:33:15","modified_gmt":"2021-09-03T05:33:15","slug":"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","status":"publish","type":"post","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\/","title":{"rendered":"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 }"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<p class=\"color-pink\">Find the output :<\/p>\n<div class=\"CodeContent\">\n<div class=\"hddn\">\n<figure class=\"highlight\">\n<pre><code id=\"code1\" class=\"hljs javascript\" data-lang=\"\"><span class=\"nt\"><span class=\"hljs-built_in\">Function<\/span> modify (a , b) \r\n{\r\n      Integer c , d = <span class=\"hljs-number\">2<\/span> \r\n      c= a * d + b \r\n      <span class=\"hljs-keyword\">return<\/span> c \r\n}\r\n\r\n<span class=\"hljs-built_in\">Function<\/span> calculate () \r\n{\r\n     Integer a = <span class=\"hljs-number\">5<\/span>, b = <span class=\"hljs-number\">20<\/span>, c \r\n     Integer d = <span class=\"hljs-number\">10<\/span> \r\n     c = modify (a, b); \r\n     c = c + d \r\n     Print c\r\n }<\/span><\/code><\/pre>\n<\/figure>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-sm-6\">A . 80<\/div>\n<div class=\"col-sm-6\">\n<p>B . 40<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>C . 32<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>D . 72<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\"answer-b-40\"><b>Answer :\u00a0<\/b>B . 40<\/h3>\n<div class=\"subheading\">\n<h2 id=\"explanation\">Explanation :<\/h2>\n<\/div>\n<div class=\"Content\">\n<div class=\"hddn\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>c = ?<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>d = 2<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>c = a * d + b<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>c = a * 2 + b then a = 5 b = 20<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>c = ?<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>c = c + d<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>c = a * 2 + b + d<\/ul>\n<\/li>\n<\/ul>\n<ul>c = 5 * 2 + 20 + 10 = 40<\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer :\u00a0B . 40<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[16504],"tags":[2045,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,1771,16431,2062,2063],"class_list":["post-2654","post","type-post","status-publish","format-standard","hentry","category-function-and-scope","tag-c-programming-functions-exercises","tag-consider-the-following-codefunction-modify","tag-consider-the-following-codefunction-modify-integer-c","tag-d2","tag-find-output-of-c-program","tag-find-output-of-c-program-with-answers","tag-find-the-output-of-c-program-questions","tag-find-the-output-of-the-following-c-program","tag-function-in-c-programming-examples","tag-functions-in-c-programming","tag-output-of-c-program-examples","tag-return-1-in-c-programming","tag-syntax-of-function-in-c","tag-tcs-ninja-coding-questions-with-answers","tag-types-of-functions-in-c","tag-user-defined-functions-in-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Find the output : function modify(a,b) - Function and Scope - Wikitechy<\/title>\n<meta name=\"description\" content=\"Find the output - This is the programming questions and answers section on function and scope with explanations for various interview, entrance test.,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"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\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Find the output : function modify(a,b) - Function and Scope - Wikitechy\" \/>\n<meta property=\"og:description\" content=\"Find the output - This is the programming questions and answers section on function and scope with explanations for various interview, entrance test.,\" \/>\n<meta property=\"og:url\" content=\"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\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-28T17:29:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-03T05:33:15+00:00\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"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\/\",\"url\":\"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\/\",\"name\":\"Find the output : function modify(a,b) - Function and Scope - Wikitechy\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"datePublished\":\"2021-08-28T17:29:11+00:00\",\"dateModified\":\"2021-09-03T05:33:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"Find the output - This is the programming questions and answers section on function and scope with explanations for various interview, entrance test.,\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"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\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Find the output : function modify(a,b) - Function and Scope - Wikitechy","description":"Find the output - This is the programming questions and answers section on function and scope with explanations for various interview, entrance test.,","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"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\/","og_locale":"en_US","og_type":"article","og_title":"Find the output : function modify(a,b) - Function and Scope - Wikitechy","og_description":"Find the output - This is the programming questions and answers section on function and scope with explanations for various interview, entrance test.,","og_url":"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\/","og_site_name":"Wikitechy","article_published_time":"2021-08-28T17:29:11+00:00","article_modified_time":"2021-09-03T05:33:15+00:00","author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"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\/","url":"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\/","name":"Find the output : function modify(a,b) - Function and Scope - Wikitechy","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-08-28T17:29:11+00:00","dateModified":"2021-09-03T05:33:15+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"Find the output - This is the programming questions and answers section on function and scope with explanations for various interview, entrance test.,","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["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\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=2654"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2654\/revisions"}],"predecessor-version":[{"id":2683,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2654\/revisions\/2683"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=2654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=2654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=2654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}