C Language Introduction

C Language is a general-purpose, cross-platform, block structured, procedural, imperative computer programming language. It was developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system.

C is rather like Pascal or Fortran. Values are stored in variables. Programs are structured by defining and calling functions. Program flow is controlled using loops, if statements and function calls. Input and output can be directed to the terminal or to files. Related data can be stored together in arrays or structures.

C Programing primary use is for "system programming"

  • · Implementing operating systems and embedded system applications,
  • · Due to a combination of desirable characteristics such as code portability and efficiency
  • · Ability to access specific hardware addresses
  • · Ability to "pun" types to match externally imposed data access requirements
  • · Low runtime demand on system resources

C has also been widely used to implement end-user applications, although as applications became larger much of that development shifted to other, higher-level languages.

You can program anything in C, and the statement is well supported by my own experience with the language. Along with the resulting freedom however, you take on a great deal of responsibility because it is very easy to write a program that destroys itself due to the silly little errors that a good Pascal compiler will flag and call a fatal error. In C, you are very much on your own as you will soon find.

No comments: