Clouds
Home
Tutorial of C language
Computer Language
Introduction to C
Programming in C
Structure of C program
Variable in C
Datatypes in C
Token in C
Operator in C
Precedence of C Operator
Assignment Operator in C
Logical Operator in C
Bitwise Operator in C
Ternary Operator in C
C Input Output
Pointers in C
Storage Classes of C
Control Structure of C
C Decision Making Statement
C Looping Statement
C Jumping Statement
C Function
Function Call By Value
Function Call By Reference
C Input Output Function
C Structure
Array in C
Union in C

Programming in C


'C' Program File

All the C programs are writen into text files with extension ".c" for example hello.c. You can use "vi" editor to write your C program into a file.

'C' Compilers

When you write any program in C language then to run that program you need to compile that program using a C Compiler which converts your program into a language understandable by a computer. This is called machine language (ie. binary format). So before proceeding, make sure you have C Compiler available at your computer. It comes alongwith all flavors of Unix and Linux. If you are working over Unix or Linux then you can type gcc -v or cc -v and check the result. You can ask your system administrator or you can take help from anyone to identify an available C Compiler at your computer. If you don't have C compiler installed at your computer then you can use below given link to download a GNU C Compiler and use it.

Note the followings Points

  • C is a case sensitive programming language. It means in C printf and Printf will have different meanings.
  • C has a free-form line structure. End of each C statement must be marked with a semicolon.
  • Multiple statements can be one the same line.
  • White Spaces (ie tab space and space bar ) are ignored.
  • Statements can continue over multiple lines.

    Special Features of 'C' Language

  • C is a block structured language with fundamental flow-control constructions.
  • C differs from many of the higher level languages by permitting close interaction with the computerís inner workings.
  • It is a simple more expressive general purpose language.
  • C is proved to be excellent and efficient language for a variety of programming applications such as scientific and commercial quality software developments.
  • C is function oriented. All additional tasks including input and output, graphics, math computations and access to peripheral devices are placed as library of functions.
  • The characters and numeric digits are the fundamental data objects of C language.
  • C has rich set of operators.
  • The variables can be defined with high scope. They can be internal to a function, external but within a source file or completely global to all functions.
  • C permits all data conversion, mixed mode operation.
  • Extensive varieties of data type such as array, pointers, functions, structures, unions and registers are available.
  • Passing parameters to function by value and by reference are possible.
  • Recursive function is possible with C.
  • C functions can be compiled separately and called by any C program.
  • It is applied in system programming like operating system, assembly language compilers, interpreters, text editors, utilities etc.

    Demerits of 'C' Language

  • It is very difficult for a novice user to learn C, like other computer languages. It required sound knowledge in one programming language to understand the underlying principles and concept of C programming.
  • At the learning stage, considerable amount of ground work and explanation by a C expert should be provided.
  • The register declaration is only an instruction to the compiler but does not refer to specific machine registers.
    Structure of C program >>
    Variable in C >>
    Datatypes in C >>
    Token in C >>
    Operator in C >>


    Home Clouds