Skip to content

Compilation of C programs required to be written in the journal

Notifications You must be signed in to change notification settings

TejasBhovad/journal-1

Repository files navigation

Header


Structured programming Journal programs

All C programs relevant to Semester I Journal

Don't rely solely on this repository and check each program before writing

Table of Contents

  1. Gross salary
  2. Grades
  3. Armstrong number
  4. Power operations
  5. Pascal triangle
  6. Sine series
  7. Matrix operations
  8. String Operations
  9. Fibonacci Series
  10. Search
  11. Employee Structure
  12. Swap Numbers

How to Compile

1. Using TurboC

Turbo C is a discontinued integrated development environment and compiler for the C programming language, and its offical website is unknown

2. Online Compilers

There are many free online sites that can be used to compile C programs like gdb compiler and programiz

3. Linux OS [Ubuntu]

gcc compiler can compile and run C files, here are the steps

  1. Open the terminal

  2. cd Desktop/ - change working directory

  3. touch hello.c - create a file named 'hello.c' on desktop

  4. Edit the hello.c file

  5. gcc hello.c -o out - compile the 'hello.c' file in out [add -lm after in case <math.h> is used]

  6. ./out - run c file

Note: Everytime the .c File is edited and saved it needs to be recompiled.

4. VS Code [Recommended]