Sunday, 30 October 2016

IDENTIFIERS IN C LANGUAGE

Tags

IDENTIFIERS IN ‘’C LANGUAGE’’


Smallest identifying unit in our program is called identifiers.

In our c program any line that consist of lot if words that words are called identifiers.

IDENTIFIERS ARE OF THREE TYPES ;


1.     CONSTANT

2.     VARIABLES

3.     KEYWORDS.



1.CONSTANTS.

Any information in c language that cannot be changed is called constants.



Constants  are of two types.



A).primary.



a)Integer

b)Real

c)Character



B).secondary.



a).Array

b).String

c).Pointer

d).Union

e).Structure

f).Enumerator



a).Integer

Any number that is negative ,positive or zero all are integers.

Ex=2,4,-2,-4,0 etc.

But integer do not consist of decimal numbers .

Like=2.2,-2.2,2.0 etc.



b).Real

It is also called float point because they consist of all numbers that have decimals.

Ex=2.0,290.3,-2.44 etc.



c).Character



Any symbol that consist of single letter with single codes are called characters.

Like=’a’ , ’b’ etc.

It does not contain more than one symbol.

Like=’-2’ it is not a character because it consist of two symbols ‘-’’and’2’.





2. VARIABLE



Variable are the name of memory location where we store data.



 Rules of variable



·        Variable name is any combination of alphabet , digit and underscore.

·        A valid variable name can not start with digits.



3) Keywords.

Keywords are predefined  words or reserved words that cannot be change.



There are 32 keywords in c language.






























Saturday, 15 October 2016

What is C programming language?

Tags

Some points that define C language.



ü C is compiled language:-So before we know about a compiled language , we have to know about what is compiler ?




Compiler is a computer program that convert source code into binary form , so what is source code?
source code is a code that we thought and present in our compiler then we compile that code and the conversion of that code is present in form of 1 and 0 that is called binary.



ü C is structural language: The question is arises that why it is called a structural language?




It is called structured language because the function and procedure of program is form in structured form.
If you don't know about function so you don't have to worry about it , you study about function in other blogs like sachins21.blogspot.com sachins21blogs.blogspot.com.


ü C is  middle level language.

Friday, 14 October 2016

Brief history of C language

Tags

History of “ c ” programming language



History of “C” starts after invention of BCPL and B language. The inventor of BCPL language  was Martin Richards and inventor of B language was Ken Thompson. BCPL  stands for Basic combined programming language and B stands for basic language.



Both language is invented in 1960’s . B(basic) language is invented for development of Unix operating system but at that time there is limitations in Unix operating system but after failure of Unix operating system Dennis Ritchie build "C" language in 1972 and with the help of ken Thompson they redevelop Unix operating system and Now a days we are using such type of operating system.


Wednesday, 12 October 2016

Importance of C language.

Tags

Image result for c language

Why C language is so important

Points to know about C language.

  1. Most popular database software's  Oracle and My Sql is written in C .

  2. Every device driver is written in C.
  3. Important parts of web browser is written in C.
  4. As we know Unix operating system is also developed in C and we also say that C language is mainly invented for Unix operating system.
  5. This language is also important for student point of view because it builds our programming skills.
  6. C covers all basic features of other programming languages like java , C#  etc..
  7. C is most important language for hardware dependent programming.