How do I code C in Terminal?

Thanh Thảo

New member
How do I code C in Terminal?
Answer
How to Compile C Program in Command Prompt?
  1. Run the command ‘gcc -v’ to check if you have a compiler installed. …
  2. Create a c program and store it in your system. …
  3. Change the working directory to where you have your C program. …
  4. Example: >cd Desktop. …
  5. The next step is to compile the program.
 

Tìm kiếm

Back
Top