Pages

Monday, 17 December 2012

C Language

What is c?

       c is a programming language developed at AT and TS bell laboratories of USA in 1972. It was designed written by a men named Dennis Ritchie.

Getting stated with c:

     However there is a close analogy between learning English and C language. The classical method of learning English is to first learn alphabets used in the language, then learn to combine these alphabets to form words which in turn are combined to form sentences and sentences are combined to form paragraphs
            Learning C is similar and easier instead of straight away learning how to write programs we must first know what alphabets, numbers and specials symbols are used in C, then how using them constants, variables and keywords are constructed and finally how these combined to form instruction. A group of instructions would be combined later on to form a program.This will explain by given structure.

   Steps in Learning English Language:

          Alphabets.......... > Words....... > Sentences....... > Paragraphs.


Steps In Learning C Language:

(1st  step)                       (2nd step)   

  Alphabets                 Constants                         (3rd step)             (4th step) 

      Digits                       Variables ............. >  Instruction......... > Program.

    Special symbols          Key words.


The Character set:

               A character denotes by alphabet , digit or special symbol used to represent information .

                                                                            Character code:

Alphabets  =     A, B ............Y,Z                      (65-90)

                            a , b.............y,z                      (97-122)

Digits =          0,1,2,3,4,5,6,7,8,9                    (48-57)

Special symbols =    ~ ` ! @ # $ % ^ & * ( ) + _ { } " : > < ? |   ( 0-47, 58-64,9196123-127 )      

       

            

No comments:

Post a Comment