All C programs relevant to Semester I Journal
Don't rely solely on this repository and check each program before writing
- Gross salary
- Grades
- Armstrong number
- Power operations
- Pascal triangle
- Sine series
- Matrix operations
- String Operations
- Fibonacci Series
- Search
- Employee Structure
- Swap Numbers
Turbo C is a discontinued integrated development environment and compiler for the C programming language, and its offical website is unknown
There are many free online sites that can be used to compile C programs like gdb compiler and programiz
gcc compiler can compile and run C files, here are the steps
-
Open the terminal
-
cd Desktop/
- change working directory -
touch hello.c
- create a file named 'hello.c' on desktop -
Edit the
hello.c
file -
gcc hello.c -o out
- compile the 'hello.c' file in out [add-lm
after in case<math.h>
is used] -
./out
- run c file
Note: Everytime the .c
File is edited and saved it needs to be recompiled.
- VS code is an IDE which can compile C with CodeRunner Extension
- Install VS code - https://code.visualstudio.com/download
- [Linux/mac] Install code runner Extension after installing VS code from here
- If you are on windows refer to this tutorial