Basic C Language Programming: Objectives
Basic C Language Programming: Objectives
Objectives :
At the end of this chapter, you will be able to:
Learn the basics of computer programming and problem solving using C.
Know the advantages and disadvantages of C language.
Learn the different data types and operators available in C.
Understand a variety of C's program control statements.
Learn the use of arrays in C.
Late 1960s- BCPL (Basic Combined Programming Language) was designed by Martin
Richards of University of Cambridge.
1970 - B language was designed by Ken Thompson of AT&T Bell Laboratories for systems
programming. (Accounts differ regarding the origins of the name "B".
Ken Thompson credits the BCPL programming language, but he had
also created a language called "Bon" in honor of his wife Bonnie)
1972 - C language was designed by Dennis Ritchie, also of AT&T Bell Laboratories, for
writing the Unix operating system. (It was named "C" because many
of its features were derived from B language.
Disadvantages:
C is not really a language for novices; it was designed for professional users.
There are many things that can go wrong if you're not careful. Small typing errors
can cause unwanted effect.
C lacks much of the automatic checking found in other high level languages.
Does not support modern concepts such as object orientation and multi-threading
Figure C.1 illustrates how an interpreter does the translation while the flowchart in
Figure C.2 shows the compilation process.
Figure C.1 How an Interpreter Translates a Figure C.2 How a Compiler Translates a
Program Program