Main.c

: Open your terminal and type gcc main.c -o my_program .

#include // Standard input/output library // The main function is where the program starts int main() { // Your code goes here printf("Hello, World!\n"); // Outputs text to the screen return 0; // Signals that the program finished successfully } Use code with caution. Copied to clipboard main.c

Once you have created your main.c file using an editor like Visual Studio Code , you can turn it into a runnable program using a compiler like : : Open your terminal and type gcc main

: Type ./my_program (on Mac/Linux) or my_program.exe (on Windows) to see your output. C Programming Full Course for free ⚙️ main.c