This short tutorial is a guide to help familiarize you with writing a simple Hello World program using C, the GCC compiler, and Pico (a text editor). It uses a Linux VM.1) With Ubuntu running on your virtual machine, open the Terminal window.2) Create a file using Pico by entering the command ‘pico gcctest.c’3) To create a helloworld script simply type the following:#include <stdio.h> main() { printf(“Hello World!\n”); }
4) Now that your helloworld script is created, you must first compile the script.
6) This is what you should see:![]() 6) Congratulations, you have successfully created and ran a helloworld script using gcc!For Additional help you may wish to refer to the links below:
|
Engineering Software > Programming basics >