/C-Coding

It includes coding of various algorithms and examples,tricks with C programming language.

Primary LanguageC

C-Coding

It includes coding of various algorithms and examples,tricks with C programming language.

To run C programs on the Linux terminal:

  • Open termnal CTRL+ALT+T
  • Update the packages list: sudo apt update
  • Install the build-essential package: sudo apt install build-essential
  • Print version to make sure: gcc --version or gcc -v
  • Open text editor and create the c file for example: nano fileName.c or gedit fileName.cor vim fileName.c
  • Save the file and go to the location of the file: cd directory
  • Compile it into an executable: gcc fileName.c -o outputFileName > This will create a binary file named outputFileName in the same directory where you run the command.
  • Execute the outputFileName program: ./outputFileName