
{"id":15977,"date":"2014-10-09T14:32:55","date_gmt":"2014-10-09T14:32:55","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=15977"},"modified":"2014-10-09T14:32:55","modified_gmt":"2014-10-09T14:32:55","slug":"how-to-write-a-program-to-multiply-a-number-by-4-using-a-bitwise-operator","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2014\/10\/09\/how-to-write-a-program-to-multiply-a-number-by-4-using-a-bitwise-operator\/","title":{"rendered":"How to write a program to multiply a number by 4 using a bitwise operator ?"},"content":{"rendered":"<pre>\n\/* Part of this program copied from http:\/\/www.sanfoundry.com\/c-program-multiply-number-4-using-bitwise-operators\/ *\/\n\n#include &lt;stdio.h&gt;\n\nmultbitwise()\n{\n\nlong number;\nprintf(\"Enter an integer: \");\nscanf(\"%ld\",&amp;number);\nnumber = number &lt;&lt; 2;\nprintf(\"Result is %ld \\n\",number);\n}\n\n\/* http:\/\/stackoverflow.com\/questions\/4456442\/interview-multiplication-of-2-integers-using-bitwise-operators *\/\n\/* http:\/\/www.geeksforgeeks.org\/multiply-two-numbers-without-using-multiply-division-bitwise-operators-and-no-loops\/ *\/\n\/* http:\/\/en.wikipedia.org\/wiki\/Bitwise_operation *\/\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/* Part of this program copied from http:\/\/www.sanfoundry.com\/c-program-multiply-number-4-using-bitwise-operators\/ *\/ #include &lt;stdio.h&gt; multbitwise() { long number; printf(&#8220;Enter an integer: &#8220;); scanf(&#8220;%ld&#8221;,&amp;number); number = number &lt;&lt; 2; printf(&#8220;Result is %ld \\n&#8221;,number); } \/* http:\/\/stackoverflow.com\/questions\/4456442\/interview-multiplication-of-2-integers-using-bitwise-operators *\/ \/* http:\/\/www.geeksforgeeks.org\/multiply-two-numbers-without-using-multiply-division-bitwise-operators-and-no-loops\/ *\/ \/* http:\/\/en.wikipedia.org\/wiki\/Bitwise_operation *\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,141,21,78,91],"tags":[481],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15977"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=15977"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15977\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=15977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=15977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=15977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}