Presentation is loading. Please wait.

Presentation is loading. Please wait.

Compile and run c files.

Similar presentations


Presentation on theme: "Compile and run c files."— Presentation transcript:

1 Compile and run c files

2 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

3 First: copy the directory of the C file

4 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

5 Compile and run C file compile run output


Download ppt "Compile and run c files."

Similar presentations


Ads by Google