
{"id":15666,"date":"2014-03-25T14:14:37","date_gmt":"2014-03-25T14:14:37","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=15666"},"modified":"2014-03-25T14:14:37","modified_gmt":"2014-03-25T14:14:37","slug":"bubble-sorting-using-c-code","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2014\/03\/25\/bubble-sorting-using-c-code\/","title":{"rendered":"BUBBLE SORTING USING C CODE"},"content":{"rendered":"<pre>\n\/*\nbubblesort ported to c by\nJeffrin Jose T &lt;ahiliation@yahoo.co.in&gt;\n\nfrom bubble.php by\n\ndetour@metalshell.com\nLicense : GPL.\n*\/\n#include&lt;stdio.h&gt;\n#include&lt;stdlib.h&gt;\n\nmain()\n{\nint array_size=400;\nint ran[1000];\nint x,y,hold;\nfor(x = 0; x &lt; array_size; x++)\nran[x]= rand();\n\nfor(x = 0; x &lt; array_size; x++) {\nfor(y = 0; y &lt; array_size; y++) {\nif(ran[x] &lt; ran[y]) {\nhold = ran[x];\nran[x] = ran[y];\nran[y] = hold;\n}\n}\n}\n\/* for(x = 0; x &lt; array_size; x++)\nprintf(\"\\n %d \\n\",ran[x]); *\/\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/* bubblesort ported to c by Jeffrin Jose T &lt;ahiliation@yahoo.co.in&gt; from bubble.php by detour@metalshell.com License : GPL. *\/ #include&lt;stdio.h&gt; #include&lt;stdlib.h&gt; main() { int array_size=400; int ran[1000]; int x,y,hold; for(x = 0; x &lt; array_size; x++) ran[x]= rand(); for(x = 0; x &lt; array_size; x++) { for(y = 0; y &lt; array_size; y++) { if(ran[x] &lt; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2014\/03\/25\/bubble-sorting-using-c-code\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;BUBBLE SORTING USING C CODE&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[141,91,108],"tags":[1465],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15666"}],"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=15666"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15666\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=15666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=15666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=15666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}