Compile and run c files
Create c file Open any editor: jgrasp or notepad orany other editor. Paste the following piece of code: #include <stdio.h> int main (void) { printf("Hello World\n"); } Save the file as hello.c
First: copy the directory of the C file
Second: change the directory Open CMD and type: cd (the directory of the c file) separated by / to change the directory to the location of the file. Ex: cd /Users/rawabialwanin/Desktop Directory changed
Compile and run C file compile run output