Search code examples
clinuxvisual-studio-codeidegitpod

Gitpod to run a C hello world program


I am new to C language but I use Gitpod for other languages. I would like to know how to run this simple "hello world" main.c program from the Gitpod interface step by step?

#include <studio.h>
void main(){
    printf("hello")
}

Many thanks !


Solution

  • After fixing the errors you can compile the code with gcc main.c and run the binary a.out. Errors as already mentioned:

    • studio.h -> stdio.h
    • ...hello") -> ...hello");