{"id":614,"date":"2017-03-02T18:23:12","date_gmt":"2017-03-02T18:23:12","guid":{"rendered":"https:\/\/visworlditsolution.wordpress.com\/?p=614"},"modified":"2017-03-02T18:23:12","modified_gmt":"2017-03-02T18:23:12","slug":"how-to-write-and-compile-c-programs-in-redhat-linux-server","status":"publish","type":"post","link":"https:\/\/linux.thingsomething.com\/index.php\/2017\/03\/02\/how-to-write-and-compile-c-programs-in-redhat-linux-server\/","title":{"rendered":"How to Write and compile C Programs in RedHat Linux Server"},"content":{"rendered":"<p>Hello guys in this tutorial we are going to learn how to write and Compile C program in RedHat Linux Server.Its a very simple process you just need to following Simple Steps. At Fast we will Install C Compiler in Linux Server. we will install C Compiler through Yum Server. If you don&#8217;t have any idea about YUM server so please click and look<a href=\"https:\/\/visworlditsolution.wordpress.com\/2016\/12\/26\/what-is-yum-and-how-to-create-in-redhat-linux-server\/\"> how to install yum server in Redhat LInux Server<\/a>.\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-615\" src=\"https:\/\/visworlditsolution.files.wordpress.com\/2017\/03\/c-language.png?w=300\" alt=\"c labguage\" width=\"665\" height=\"392\" \/><span style=\"color:#ff0000;\"><strong>\u00a0Step 1 Here i assume that\u00a0 you have configured YUM Server in redhat linux, then you\u00a0 will install C -Compiler\u00a0 through below Commands<\/strong><\/span><\/p>\n<pre><span style=\"color:#008000;\"><strong>[root@localhost ~]# yum install gcc* -y<\/strong> <\/span><\/pre>\n<p><strong><span style=\"color:#ff0000;\">Step 2 then we will write C Program like this<\/span><\/strong><\/p>\n<pre><strong><span style=\"color:#ff0000;\">[root@localhost ~]# vim vishnu.c<\/span><\/strong>\n<span style=\"color:#3366ff;\">#include&lt;stdio.h&gt;\nvoid main()\n{\nprintf(\"hello this is my linux server c programming demo');\n}\n~<\/span>\n<span style=\"color:#339966;\">:wq\n<\/span><\/pre>\n<p><span style=\"color:#ff0000;\"><strong>Step 3 then we will compile Program below Commands<\/strong><\/span><\/p>\n<pre><strong><span style=\"color:#008000;\">[root@localhost ~]# gcc vishnu.c -o cprogram<\/span><\/strong><\/pre>\n<p><strong><span style=\"color:#ff0000;\">Step 4 now if we don&#8217;t found any error in this \u00a0program then we will run below commands\u00a0<\/span><\/strong><\/p>\n<pre><strong><span style=\"color:#008000;\">[root@localhost ~]# .\/cprogram<\/span><\/strong>\n<span style=\"color:#3366ff;\">hello this is my linux server c programming demo<\/span><\/pre>\n<p>if you have any Problem in this process please comments here i will solve your problem<\/p>\n<p>Thank you<\/p>\n<p>Vishnu Sharma<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello guys in this tutorial we are going to learn how to write and Compile C program in RedHat Linux Server.Its a very simple process &hellip; <span class=\"ml-btn\"><a href=\"https:\/\/linux.thingsomething.com\/index.php\/2017\/03\/02\/how-to-write-and-compile-c-programs-in-redhat-linux-server\/\" class=\"more-link\">Read More<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[22,3],"tags":[41,43,76],"class_list":["post-614","post","type-post","status-publish","format-standard","hentry","category-basic-linux","category-cc-language","tag-c-language","tag-c-programming-in-linux-server","tag-how-to-compile-c-program-in-redhat-linux-server"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/posts\/614"}],"collection":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/comments?post=614"}],"version-history":[{"count":0,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/posts\/614\/revisions"}],"wp:attachment":[{"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/media?parent=614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/categories?post=614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux.thingsomething.com\/index.php\/wp-json\/wp\/v2\/tags?post=614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}