Walkthrough: Compile a C program on the command line
learn.microsoft.com › en-us › cppMay 10, 2022 · Next, enter md c:\hello to create a directory, and then enter cd c:\hello to change to that directory. This directory will hold your source file and the compiled program. Enter notepad hello.c at the developer command prompt. In the Notepad alert dialog that pops up, choose Yes to create a new hello.c file in your working directory.