top of page
MY BUTTON

C LANGUAGE

Steps to write C programs and get the output:

 

   Below are the steps to be followed for any C program to create and get the output. This is common to all C program and there is no exception whether its a very small C program or very large C program.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Creation, Compilation and Execution of a C program

 

  • If you want to create, compile and execute C programs by your own, you have to install C compiler in your machine. Then, you can start to execute your own C programs in your machine.

  • You can refer below link for how to install C compiler and compile and execute C programs in your machine.

  • Once C compiler is installed in your machine, you can create, compile and execute C programs as shown in below link.

 

​Click here to download the compiler

 

Basic structure of C program:

           Structure of C program is defined by set of rules called protocol, to be followed by programmer while writing C program. All C programs are having sections/parts which are mentioned below.

 

  • Documentation section (comments about the program, creation or modified date, author name etc)

 

  • Link Section (Header files that are required to execute a C program)

 

  • Definition Section (variables are defined and values are set to these variables.)

 

  • Global declaration section (Global variables)

 

  • Function prototype declaration section (information about a function like return type, parameter names used inside the function.)

 

  • Main function

  • User defined function definition section (User can define their own functions)

BASIC
DOWNLOADS
EXAMPLES
SEE ALSO
REPORT AN ERROR
UNION
PREPROCESSOR
STRUCTURE
FUNCTION
ARRAY
STORAGE CLASS
TYPE QUALIFIER
CASE CONTROL
LOOP
DECISION
OPERATORS
VARIABLE
CONSTANT
KEYWORDS
DATA TYPE
PRINTF &SCANF
BASIC
Create
Compile
Execute / Run
Output
POINTERS
LINKED LIST

© 2014 by KAILASH LALE.

FAVORITES

FOLLOW US ON

CONTACT ME

Tel: +91 8446823181
Skype: deathreveals
Mail: shareandlearnhub@gmail.com

bottom of page