I want to have a deeper understanding of how C programmes are run.
But IDEs stops us from doing that.
So is it possible that I manually set up the environment an
As others have said, install MinGW (I'm assuming you are using Windows) and put its bin directory on your path. Open a command line windows, and create a file with a text editor, such as notepad - call it foo.c:
#include
int main() {
printf( "hello world\n" );
return 0;
}
Then, use the gcc compiler to compile it, creating an executable called foo.exe:
> gcc foo.c -o foo.exe
lastly, run foo.exe from the command line:
> foo.exe
hello world