Ignore this, I’m just testing some visuals

In order to write Hello World in C, please open a file in Vi:
ojuice@ortega:~ $ vi hi.c

As you can see, just type in those words you know by heart:

Finally we compile this incredibly simple program with gcc:
ojuice@ortega:~ $ gcc hi.c -o hi

Now to execute just type:
ojuice@ortega:~ $ ./hi
Hello world!

Leave a Reply