ubuntu write a C program
root@LAPTOP-TOR03L7R:~# touch flow.c
root@LAPTOP-TOR03L7R:~# vim flow.c
root@LAPTOP-TOR03L7R:~# gcc flow.c
flow.c: In function ‘main’:
flow.c:5:13: warning: integer overflow in expression [-Woverflow]
int b=50000*50000;
root@LAPTOP-TOR03L7R:~# touch beau.c
root@LAPTOP-TOR03L7R:~# vim beau.c
root@LAPTOP-TOR03L7R:~# g++ beau.c -o beau
root@LAPTOP-TOR03L7R:~# ./beau
beautifulroot@LAPTOP-TOR03L7R:~#
1.touch hello.c source code to create a new file called hello.c
2.vim programming hello.c press i to enter insert mode
After the top left corner of the keyboard to write the Esc key, type: wq and press Enter to exit the programming mode
3.gcc hello.c The program compiler for compiling no error display
Such as compilation errors found will be listed in the next few lines
Can also be used g ++ hello.c -o hello
4. Run the program compiling compiled result appears correct ./hello