c program

Image

To learn the c program first u have to now the base of c program.

LANGUAGE:

A programming language is which designed and developed by the programmer and put into the system to perform some particular action or task or functions

USES:

this programming language is mainly used for solving the real time problems like ATM, RAILWAY  RESERVATIONS,ETC….

BASIC LANGUAGES:

Basic language which is present before c language is BASIC,PASCAL,FORTON,COBOL ETC,……

INTRODUCTION:

At first there was a language  named BCPL at 1960’s .which was not popular so that language had been classified into two they are B AND C

Then the properties in c language was much used  and the designed and developed by DENNIS RITCHIE AND  BRAIN KERNIGHAN at BELL LAB…..

characteristics of c language :

  •         case sensitive language
  •         free form language
  •         procedure oriented language
  •         structured programming language
  •         protocol type language
  •        top down approach language

CASE SENSITIVE LANGUAGE:

the upper case an the lower case letters in c program are used in some particular  areas only …

STRUCTURE PROGRAMMING LANGUAGE:

IN THE   c programs this are given are in some order which cannot  be changed and given …

PROCEDURE ORIENTED LANGUAGE :

IN the program we should follow some rules an regulations .such type of language is called as procedure oriented -(based )

that we call it as syntax / coding /grammar……

FREE FORM LANGUAGE :                             this program can be used in all type base as form of java ,c++
,flash….etc……

PROTOCOL  TYPE LANGUAGE :

SAME AS THE THAT USED FOR ALL AREA …….

TOP DOWN APPROACH LANGUAGE :

all ways….. begins from the main function and ends with the “}”closing brazes ….

STRUCTURE OF C PROGRAM:Image

  • DOCUMENTATION SECTION
  • LINK SECTION
  • MAIN SECTION
  • DECLARATION PART
  • EXECUTABLE PART

DOCUMENT SECTION:

this  is the place where it ‘s for the understanding for users what they type there……

the eg:….

/*ADDITION*/= shows that this program is for addition this will not display in output  /*         */ this is called delimiters …

ADDITION   is comment on program

LINK SECTION:

#include <stdio.h>

#include<conio.h>

# ==> pre processor directives contains pre defined function

include==> keyword used for including the properties or functions which is in the header files into program to its corresponding function

<  >  ==>link tag to form link between the program and the link section ..

.h===>extension for header files..

stdio.h==> standard input ,output header file.say to way printf (); and scanf();

conio.h==>common header file..say to way getch();  and clrscr();

main section:

every program begins from main function

main()

{

this area named scope

}

here main is called as function and not as keyword…….

DECLARATION PART :

this prat contains the variables and its corresponding data types which is to be displayed in the executable part .

eg:..                   int a,b;

clrscr();                 here a&b are variables and int is the integer data type.

EXECUTABLE PART:

the values which had been declared in the declaration  part are executed in the executed in the executable part

eg:..          printf(“enter a & b values:”);

scanf(“%d%d”,&a,&b);

printf(“%d%d”,a,b);

getch();

}

here   %===>conversion specification

d==>decimal converter

”   ”  ===> area in printf function is named as ->format string

”    “==>area in scanf function is named as->control string..

,==> separation operator

;==>delimiters

Unknown's avatar

About mask inventers

think the things big too.....and make different and little playful in the thing that hand to give different in invention
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment