How do I run GCC on Ubuntu?

How do I run GCC on Ubuntu?
Answer
The main command for installing the GCC compiler using terminal on Ubuntu is:
  1. sudo apt install GCC.
  2. GCC — version.
  3. cd Desktop.
  4. Key takeaway: Commands are case sensitive.
  5. touch program.c.
  6. GCC program.c -o program.
  7. Key takeaway: The executable file name can be different from the source file name.
  8. ./program.
 

Tìm kiếm

Back
Top