Basically I started to learn programming very recently and my code is not executing at all.
So here's my code... A simple hello world:
#include <stdio.h>
int main()
{
printf(Hello World);
return 0;
}
But it's not running and here's my error...
PS C:\Users\91968>
cd "c:\Users\91968\OneDrive\Documents\" ;
if ($?) { gcc HelloWorld.c -o HelloWorld } ;
if ($?) { .\HelloWorld }
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status
PS C:\Users\91968\OneDrive\Documents>