{"id":2307,"date":"2024-11-06T10:30:36","date_gmt":"2024-11-06T10:30:36","guid":{"rendered":"https:\/\/itnotes.apjsoftwares.in\/?p=2307"},"modified":"2024-11-06T10:30:36","modified_gmt":"2024-11-06T10:30:36","slug":"c-hello-world-program","status":"publish","type":"post","link":"https:\/\/itnotes.apjsoftwares.in\/index.php\/2024\/11\/06\/c-hello-world-program\/","title":{"rendered":"C Hello World Program"},"content":{"rendered":"\n<p>The \u201cHello World\u201d program is the first step towards learning any programming language and also one of the simplest programs you will learn. To print the \u201cHello World\u201d, we can use the\u00a0printf function\u00a0from the stdio.h library that prints the given string on the screen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"c-program-to-print-hello-world\">C Program to Print \u201cHello World\u201d<\/h2>\n\n\n\n<p><code> #include <em>&lt;stdio.h><\/em> <\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> int main() {<\/pre>\n\n\n\n<p><code> printf(\"Hello World\");<\/code><\/p>\n\n\n\n<p><code> <strong>return<\/strong> 0; <\/code><\/p>\n\n\n\n<p><code>}<\/code><\/p>\n\n\n\n<p><strong>Output<\/strong> :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Hello World<\/pre>\n\n\n\n<p><strong>Explanation:<\/strong><\/p>\n\n\n\n<ul>\n<li><strong>#include &lt;stdio.h&gt;<\/strong>&nbsp;\u2013 This line includes the standard input-output library in the program.<\/li>\n\n\n\n<li><strong>int main()&nbsp;<\/strong>\u2013 The main function where the execution of the program begins.<\/li>\n\n\n\n<li><strong>printf(\u201cHello, World!\\n\u201d);<\/strong>&nbsp;\u2013 This function call prints \u201cHello, World!\u201d followed by a new line.<\/li>\n\n\n\n<li><strong>return 0;&nbsp;<\/strong>-This statement indicates that the program ended successfully.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The \u201cHello World\u201d program is the first step towards learning any programming language and also&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"_links":{"self":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2307"}],"collection":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/comments?post=2307"}],"version-history":[{"count":1,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2307\/revisions"}],"predecessor-version":[{"id":2308,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2307\/revisions\/2308"}],"wp:attachment":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/media?parent=2307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/categories?post=2307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/tags?post=2307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}