Thanks to Bo Persson for his quick comment.
If your program builds properly, but it freezes the console or just doesn't seem to start (but the IDE shows something's going on) is because AVAST Antivirus is stopping it from executing properly.
Just disable AVAST Shields while you're developing in C. I don't know if it applies to all versions of Windows or environments.