- Install Windows Subshell Linux if learning on Windows
- Install C/C++ extension for VS Code
- Install Makefile tools extension for VS Code
[- Learn some Git basics]
- Create a file ending by ".c" (Example: example.c)
- Write your code inside
- When it's ready, compile it using the command
gcc -Wall -Wextra -Werror example.c
- This will create an executable. By default, it will be named "a.out". You can then run your code with the command
./a.out
if you are in the same directory - Note: to test your code you will need a main function. If the exercice is asking for a program, include the main function in your code. If the exercice is asking for a function, do not include the main function in your code. (You can leave it commented)
- Read the code in intro.c file
- Download it to your computer
- Compile it and run the executable
- Try to play with the code. Change the values, add lines of code, understand every line of code