Intruduction to C Language

Introduction to 'C' Language

History: of C Language

History of C language is interesting to know. Here we are going to discuss brief history of c language.


  • C programming language was developed in 1972 by Dennis Ritchie at bell laboratories of AT&T (American Telephone & Telegraph), located in U.S.A.
  • Dennis Ritchie is known as the founder of c language
  • It was developed to overcome the problems of previous languages such as B, BCPL etc.
  • Initially, C language was developed to be used in UNIX operating system. It inherits many features of previous languages such as B and BCPL.

Character Set In C

Characters are used in forming either words or numbers or even expressions in C programming. Characters in C are classified into 4 groups:

Letters

In C programming, we can use both uppercase and lowercase letters of English language
  • Uppercase Letters: A to Z
  • Lowercase Letters: a to z

Digits

We can use decimal digits from 0 to 9.

Special Characters

C Programming allows programmer to use following special characters:
comma ,
slash /
period .
backslash \
semicolon ;
percentage %
colon :
left and right brackets [ ]
question mark ?
left and right parenthesis ( )

White Spaces

In C Programming, white spaces contains:
  • Blank Spaces
  • Tab
  • Carriage Return
  • New Line

Identifiers

Identifiers are user-defined names of variables, functions and arrays. It comprises of combination of letters and digits. In C Programming, while declaring identifiers, certain rules have to be followed viz.


  • It must begin with an alphabet or an underscore and not digits.
  • It must contain only alphabets, digits or underscore.
  • A keyword cannot be used as an identifier
  • Must not contain white space.
  • Only first 31 characters are significant.
Let us again consider an example
int age1;
float height_in_feet;
Here, age1 is an identifier of integer data type.
Similarly height_feet is also an identifier but of floating integer data type,
Note: Every word in C program is either a keyword or an identifier.


-----------------------------------------------------------------------------------------------------------------------
Hope Guys This Helped You :))

Comments

  1. We want more tutorials like python

    ReplyDelete
    Replies
    1. Yes... In further Post I will Give Information about Python programming...
      I am just trying to give brief introduction and knowledge about the Basic Programming Language C..
      Soo... Few Days it will be Available...

      Delete

Post a Comment

Popular posts from this blog

Variables,Operators and Expressions in 'C' Language

Built-in Data Types: In 'C' Language

For Loop in C