
{"id":15874,"date":"2014-06-20T17:22:37","date_gmt":"2014-06-20T17:22:37","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=15874"},"modified":"2014-06-20T17:22:37","modified_gmt":"2014-06-20T17:22:37","slug":"how-to-write-a-simple-c-program-showing-addition-with-the-help-of-return-statement","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2014\/06\/20\/how-to-write-a-simple-c-program-showing-addition-with-the-help-of-return-statement\/","title":{"rendered":"How to write a simple C program showing addition ?"},"content":{"rendered":"<pre>\n$cat add-p1.c\n#include &lt;stdio.h&gt;\n#include &lt;stdlib.h&gt;\n\nint add (int a,int b) {\nreturn a + b;\n}\n\nint main() {\nint a,b;\na =3;\nb =4;\nint ret = add(a,b);\nprintf(\"Result: %u\\n\",ret);\nexit(0);\n}\n\n$gcc add-p1.c\n$.\/a.out\nResult: 7\n$\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$cat add-p1.c #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int add (int a,int b) { return a + b; } int main() { int a,b; a =3; b =4; int ret = add(a,b); printf(&#8220;Result: %u\\n&#8221;,ret); exit(0); } $gcc add-p1.c $.\/a.out Result: 7 $<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[141,91],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15874"}],"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=15874"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15874\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=15874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=15874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=15874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}