Comprog1 Lesson Proper2
Comprog1 Lesson Proper2
Comprog1 Lesson Proper2
Easy to learn
Structured language
It produces efficient programs
It can handle low-level activities
It can be compiled on a variety of computer platforms
Operating Systems
Language Compilers
Assemblers
Text Editors
Print Spoolers
Network Drivers
Modern Programs
Databases
Language Interpreters
Utilities
C Programs
A C program can vary from 3 lines to millions of lines and
it should be written into one or more text files with extension ".c";
for example, hello.c.
UNIX is the major interactive operating system on workstations, servers, and mainframes. C is the
standard development language for personal computers. Most Windows applications, database programs,
graphics libraries, and other large application are written in C.
C is a structured language.
C is a “middle-level language”.
Although C cannot beat assembly language at producing code that is highly compact and tuned, it
is the language that probably comes closest to keeping up with assembly language. C has a powerful set of
operators that allows the direct manipulation of bit, bytes, words, and pointers. Using C, a programmer can
produce programs that are as efficient as those written in assembly language while still enjoying the
usefulness of high-level language.
Though C is often criticized to have a complicated syntax since it can allow the multiple use of
some symbols such as “*” and “=”, yet this same feature is what makes C very attractive to power
programmers. C is an elegant language. Many of the constructs and methodologies that are routinely used
in C are also used by C++ and Java programs. Thus, learning C can be considered a first step in learning
C++ and Java, which both support object-oriented programming (OOP).
Set Theory