-->

C Programming With Ubuntu Tutorials

By

 C Programming With Ubuntu Tutorials       

       This tutorial is for those people who know how to program but doesn’t know how to run the C program in Linux. The linux itself is written in C programming which means it is very friendly to programmers. 

Our first program follows 
 



To write your First program Open your Terminal in ubuntu (Short Key -Alt+Ctrl+T). Enter the command there as follows
To Open Gedit (Text editor ) .
Sudo gedit myfirstprogram.c .
(give password it will open gedit and write program there and save it ,finally close that gedit) .




Once again .
1) Open the terminal & enter the command as folows.
  sudo gedit myfristprogram.c   
 Give password 
It will open a gedit text file with named as myfirstprogram.c .write here your first prgram source code here  save and close it .

2) Compile it the source code (myfirstprogram.c) by the following command
    gcc -o myfirstprogram myfirstprogram.c

3) To see the output type the command as follows 
  ./myfirstprogam 

In this case output is 

 Hello wrold   

 Thanks 





More Posts

gElectron. Powered by Blogger.

Contributors

16x2 LCD Interfacing with STM32,STM32F103C6

 16x2 LCD  Interfacing with STM32,STM32F103C6 lcd_init(); LCD_LINE1; lcd_String(" GeElectron"); LCD_LINE2; lc...

Contact Form

Name

Email *

Message *

Contact us

Name

Email *

Message *

Follow Us

https://www.facebook.com/gElectron-393939667321867/ FBbox/https://www.facebook.com/IVYthemes

Comments

[blogger]

MKRdezign

Test
google.com, pub-8429441124104529, DIRECT, f08c47fec0942fa0
[blogger]

Latest

[recent][newsticker]

Technology

Top Ads

RECENT COMMENTS

Subscribe Via Email

Subscribe to our newsletter to get the latest updates to your inbox. ;-)


Your email address is safe with us!

RECENT COMMENTS