{"id":2575,"date":"2021-08-27T00:33:02","date_gmt":"2021-08-27T00:33:02","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=2575"},"modified":"2021-09-20T10:49:37","modified_gmt":"2021-09-20T10:49:37","slug":"given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\/","title":{"rendered":"Given : integer x = 40, y = 35, z = 20, w = 10. Comment about the output of the following two statements ? print x * y \/ z &#8211; w print x * y \/ (z &#8211; w)"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<p class=\"color-pink\">Given : integer x = 40, y = 35, z = 20, w = 10. Comment about the output of the following two statements:<br \/>\nprint x * y \/ z \u2013 w<br \/>\nprint x * y \/ (z \u2013 w) ?<\/p>\n<div class=\"row\">\n<div class=\"col-sm-6\">\n<p>A. Differ by 80<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>B. Same<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>C. Differ by 50<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>D. Differ by 160<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\"answer-a-differ-by-80\"><b>Answer :\u00a0<\/b>A. Differ by 80<\/h3>\n<div class=\"subheading\">\n<h2 id=\"explanation\">Explanation :<\/h2>\n<\/div>\n<div class=\"Content\">\n<div class=\"hddn\">\n<p align=\"justify\">print x * y \/ z \u2013 w = 40 * 35 \/ 20 \u2013 10 = 60<br \/>\nprint x * y \/ (z \u2013 w) = 40 * 35 \/ ( 20 \u2013 10 ) = 140<br \/>\nDifference is 80<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer :\u00a0A. Differ by 80<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15949],"tags":[16519,16123,16121,16128,16127,16118,16120,16131,16119,16132,16035,16133,16112,16111,16130,16124,16122,16125,16126,16129],"class_list":["post-2575","post","type-post","status-publish","format-standard","hentry","category-programming","tag-amcat-question-papers-with-answers","tag-basic-c-programming-interview-questionsc-programming-viva-questions-and-answers","tag-basic-c-programming-questions","tag-c-language-programming-questions","tag-c-programming-interview-programs","tag-c-programming-interview-questions-and-answers","tag-c-programming-mcq-with-answers","tag-c-programming-multiple-choice-questions-and-answers","tag-c-programming-practice-questions","tag-c-programming-problems-and-solutions","tag-c-programming-questions-and-answers","tag-c-programming-questions-and-answers-objective-type","tag-computer-programming-o-no-error-the-program-is-correctgiven-integer-x-40","tag-given-integer-x-40-y-35-z-20-w-10-comment-about-the-output","tag-google-programming-interview-questions","tag-programming-aptitude-questions","tag-programming-interview-problems","tag-programming-technical-interview-questions","tag-simple-programming-questions","tag-string-programming-interview-questions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Given : integer x = 40, y = 35, z = 20, w = 10 - Programming<\/title>\n<meta name=\"description\" content=\"Programming - Given : integer x = 40, y = 35, z = 20, w = 10 - This is the programming questions and answers 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\/programming\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Given : integer x = 40, y = 35, z = 20, w = 10 - Programming\" \/>\n<meta property=\"og:description\" content=\"Programming - Given : integer x = 40, y = 35, z = 20, w = 10 - This is the programming questions and answers with explanations for various interview, entrance test.,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/programming\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-27T00:33:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-20T10:49:37+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\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"Given : integer x = 40, y = 35, z = 20, w = 10. Comment about the output of the following two statements ? print x * y \\\/ z &#8211; w print x * y \\\/ (z &#8211; w)\",\"datePublished\":\"2021-08-27T00:33:02+00:00\",\"dateModified\":\"2021-09-20T10:49:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\\\/\"},\"wordCount\":82,\"commentCount\":0,\"keywords\":[\"AMCAT Question Papers with Answers\",\"basic c programming interview questionsc programming viva questions and answers\",\"basic c programming questions\",\"c language programming questions\",\"c programming interview programs\",\"c programming interview questions and answers\",\"c programming mcq with answers\",\"c programming multiple choice questions and answers\",\"c programming practice questions\",\"c programming problems and solutions\",\"c programming questions and answers\",\"c programming questions and answers objective type\",\"Computer Programming o No error the program is correctGiven: integer x = 40\",\"Given integer x 40 y 35 z 20 w 10 Comment about the output\",\"google programming interview questions\",\"programming aptitude questions\",\"programming interview problems\",\"programming technical interview questions\",\"simple programming questions\",\"string programming interview questions\"],\"articleSection\":[\"Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\\\/\",\"name\":\"Given : integer x = 40, y = 35, z = 20, w = 10 - Programming\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"datePublished\":\"2021-08-27T00:33:02+00:00\",\"dateModified\":\"2021-09-20T10:49:37+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"Programming - Given : integer x = 40, y = 35, z = 20, w = 10 - This is the programming questions and answers with explanations for various interview, entrance test.,\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\\\/\"]}]},{\"@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\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"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:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"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":"Given : integer x = 40, y = 35, z = 20, w = 10 - Programming","description":"Programming - Given : integer x = 40, y = 35, z = 20, w = 10 - This is the programming questions and answers 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\/programming\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\/","og_locale":"en_US","og_type":"article","og_title":"Given : integer x = 40, y = 35, z = 20, w = 10 - Programming","og_description":"Programming - Given : integer x = 40, y = 35, z = 20, w = 10 - This is the programming questions and answers with explanations for various interview, entrance test.,","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\/","og_site_name":"Wikitechy","article_published_time":"2021-08-27T00:33:02+00:00","article_modified_time":"2021-09-20T10:49:37+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":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"Given : integer x = 40, y = 35, z = 20, w = 10. Comment about the output of the following two statements ? print x * y \/ z &#8211; w print x * y \/ (z &#8211; w)","datePublished":"2021-08-27T00:33:02+00:00","dateModified":"2021-09-20T10:49:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\/"},"wordCount":82,"commentCount":0,"keywords":["AMCAT Question Papers with Answers","basic c programming interview questionsc programming viva questions and answers","basic c programming questions","c language programming questions","c programming interview programs","c programming interview questions and answers","c programming mcq with answers","c programming multiple choice questions and answers","c programming practice questions","c programming problems and solutions","c programming questions and answers","c programming questions and answers objective type","Computer Programming o No error the program is correctGiven: integer x = 40","Given integer x 40 y 35 z 20 w 10 Comment about the output","google programming interview questions","programming aptitude questions","programming interview problems","programming technical interview questions","simple programming questions","string programming interview questions"],"articleSection":["Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/programming\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\/","name":"Given : integer x = 40, y = 35, z = 20, w = 10 - Programming","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-08-27T00:33:02+00:00","dateModified":"2021-09-20T10:49:37+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"Programming - Given : integer x = 40, y = 35, z = 20, w = 10 - This is the programming questions and answers with explanations for various interview, entrance test.,","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/programming\/given-integer-x-40-y-35-z-20-w-10-comment-about-the-output-of-the-following-two-statements-print-x-y-z-w-print-x-y-z-w\/"]}]},{"@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":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"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:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","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\/2575","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=2575"}],"version-history":[{"count":1,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2575\/revisions"}],"predecessor-version":[{"id":2585,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2575\/revisions\/2585"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=2575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=2575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=2575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}