/Basic-C-Programs

Some Basic C Programs For Beginners :D Created by Subhranshu Sekhar Choudhury

Primary LanguageC

repository-open-graph-template

Welcome :)

ABOUT THESE PROJECTS:

Basic Programs who just start learning C. :D

PROCEDURE TO RUN THE PROGRAM:

  1. COPY THE CODE FROM THE FILE.
  2. OPEN YOUR C COMPILER & PASTE IT AND RUN IT :)

HOW TO CONVERT IT TO .C FILE.

  1. COPY THE CODE FROM THE FILE.
  2. PASTE IT IN NOTEPAD.
  3. SAVE THE FILE AS xxx.C

CONVERT.C FORMAT TO .EXE

  1. OPEN TERMINAL(CMD)

  2. Run the command ‘gcc -v’ to check if you have a compiler installed. If not you need to download a gcc compiler and install it. You can search for cmd in your windows system to open the command prompt.

  3. Change the working directory to where you have your C program. You can do that by using the command ‘cd’, which changes the directory. We need to pass the name of the directory in which the program is stored.

  4. The next step is to compile the program. To do this we need to use the command gcc followed by the name of the program we are going to execute. In our case, we will use helloworld.c.

  5. In the next step, we can run the program. This is done by simply giving the name of the executable file without any extension. On giving this we will get an output. Here, our Armstrong code is executed and we got output for this code.

  6. reference website: https://www.edureka.co/blog/how-to-compile-c-program-in-command-prompt/

  7. online c compiler: https://www.onlinegdb.com/online_c_compiler

Author: Subhranshu Sekhar Choudhury :D

PUBLISHED ON: 15 JULY 2021