Home / Expert Answers / Computer Science / you-have-written-a-c-program-which-was-stored-in-file-nbsp-someprogram-c-under-directory-nbsp-home-pa702

(Solved): You have written a C program which was stored in file someProgram.c, under directory /home ...



You have written a C program which was stored in file someProgram.c, under directory /home/chloe/TestingCode; in that same directory, you have a sub-folder called Old. Answer the following questions (by typing the appropriate single command line instruction in each case), assuming you are currently in /home/chloe/TestingCode:

 

Compile the code in someProgram.c.

Create a new sub-folder called New under /home/chloe.

Show the location (i.e., the full path) of the current directory.

Make a copy of the file someProgram.c and call it someProgram_v2.c.



We have an Answer from Expert

View Expert Answer

Expert Answer


To compile the code in someProgram.c, you can use the following command: gcc someProgram.c -o someProgram
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe