Error observed in my first C language 'Hello World' program


Installed VS Code then installed MinGW64 for Windows 10 then setup environment variables then opened VS Code where created new folder by name 'C Tutorial' therein a new file as 'Hello.c' and typed basic Hello World program. Was expecting 'Hello World' text to be printed on terminal instead received some error which I cannot interpret as of now.


  • Use forward slash to call the program. I.e ./a.exe

    Add void to the main function like this.

    #include <stdio.h>
    int main(void) {
        printf("Hello World");
        return (0);