C: Introduction

This provides the introduction about C language.

Hi everyone, this page deals with introduction of C .History of C, components of C program and structure of C program.

INTRODUCTION:

What is c?

C is a computer programming language C is used to create instruction that a computer can follow. C is simple and because of this, it has become a famous computer programming language.

History of c:

C was developed by BELL laboratories by Dennis Ritchie in 1980. This was the result of earlier two languages, BCPL and B, which were also developed by bell laborites.

FEATURES OF C:

  • C is a structures programming language
  • C is very simple and easy to learn
  • C encourages modularity
  • C is highly portable
  • C is case sensitive
  • C is intermediate language

STEPS INVLED IN EXCUTING A C PROGRAM:

In order to run a C program the following steps must be followed:

  • Type the text of the program n the computer—source code
  • Translate the computer in the form it understands—compilation
  • Run the translated program. —–execution (ctrl+f9)

COMPONENTS OF C PROGRAM

Header

This consists of the library files. So appropriate header file must be included

Function:

Any c program must a least have one main function. The execution of the program stars with the main.

Delimiters:

Specify the beginning and the end {}

Statements:

Each line of the program is the statement.

Keyboards:

These are reserved words .does a specific work.

Comments lines:

They are used to explain any statement or ablock of code.

/*——*/ . the code inside ,is considered as comments and the complier ignores the execution of those codes.

Note:

Every C program must have a main()

These statements nust be enclosed in the {}

A simple c program:

#include

main ()

{

printf(“hi all”);

}

output:

hi all

Leave Your Response