Professional Documents
Culture Documents
1.0 C Lang
1.0 C Lang
Sc I Year / II Semester
UNIT – I ‘C’ Fundamentals, Tokens, Control and Decision Making Statements
I. TYPES OF PROGRAMMING LANGUAGES
The types of programming languages have been dependent on the generation of languages.
Like generation of computers there is a generation of languages, they are as follows:
a) First-Generation Languages
b) Second-Generation Languages
c) Third-Generation Languages
d) Fourth-Generation Languages
e) Fifth-Generation Languages
a) First-Generation Languages: In this generation the programming language used was only
the Machine language, which was a binary number system code (i.e. is 0’s or 1’s like 00010101
1010101,,,,,,, .)
c) Third-Generation Languages: In this generation the programming language used high level
languages, which were used for user for different
BASIC: BASIC (standing for Beginner's All Purpose Symbolic Instruction Code) is a system
developed at Dartmouth College in 1964 under the directory of J. Kemeny and T. Kurtz. It was
implemented for the G.E.225. It was meant to be a very simple language to learn and also one
that would be easy to translate.
C: The third letter of the English alphabet. ASCII 1000011. The name of a programming
language designed by Dennis Ritchie during the early 1970s and immediately used to
reimplement Unix; so called because many features derived from an earlier compiler named `B'
in commemoration of its parent, BCPL. (BCPL was in turn descended from an earlier Algol-
derived language, CPL.) Before Bjarne Stroustrup settled the question by designing C++, there
was a humorous debate over whether C's successor should be named `D' or `P'. C became
immensely popular outside Bell Labs after about 1980 and is now the dominant language in
systems and microcomputer applications programming. See also languages of choice, indent
style.
C is often described, with a mixture of fondness and disdain varying according to the speaker, as
"a language that combines all the elegance and power of assembly language with all the
readability and maintainability of assembly language".
Pascal: PASCAL is a programming language named after the 17th century mathematican Blaise
Pascal. Provides a teaching language that highlights concepts common to all computer
languages. Standardises the language in such a way that it makes programs easy to write
Strict rules make it difficult for the programmer to write bad code!
d) Fourth-Generation Languages: The 4GLs are easier to use than 3GLs. In 4GL visual
environment, the programmer uses a toolbar to drag and drop various items like buttons, labels
and text boxes to create a visual definition of an application. The 4GLs languages include the
following:
.NET: The .NET is MS’s newest entry into the programming arena. It combines several
programming languages into one IDE (Integrated Development Environment). Included are
Visual Basic (VB), C#.
Starting from an initial state and initial input (perhaps empty), the instructions describe a
computation that, when executed, proceeds through a finite number of well-defined successive
states, eventually producing "output" and terminating at a final ending state.
The transition from one state to the next is not necessarily deterministic; some algorithms,
known as randomized algorithms, incorporate random input.
Computer science is the scientific and practical approach to computation and its
applications. It is the systematic study of the feasibility, structure, expression, and mechanization
of the methodical procedures (or algorithms) that underlie the acquisition, representation,
processing, storage, communication of, and access to information. An alternate, more succinct
definition of computer science is the study of automating algorithmic processes that scale. A
computer scientist specializes in the theory of computation and the design of computational
systems.
This diagrammatic representation illustrates a solution model to a given problem. Flowcharts are
used in analyzing, designing, documenting or managing a process or program in various fields.
Types of flowchart
Sterneckert (2003) suggested that flowcharts can be modeled from the perspective of
different user groups (such as managers, system analysts and clerks) and that there are four
general types:
a) Document flowcharts, showing controls over a document-flow through a system
b) Data flowcharts, showing controls over a data-flow in a system
c) System flowcharts, showing controls at a physical or resource level
d) Program flowchart, showing the controls in a program within a system
Arrows show what's called "flow of control" in computer science. An arrow coming from one
symbol and ending at another symbol signifies flow passes to the symbol the arrow points to.
Processing steps are represented by rectangles. Examples: "Add 1 to X"; "replace identified
part"; "save changes" or similar.
Input/Output are represented by a parallelogram. Examples: Get X from the user; display X.
Manual input represented by a rectangle, with the top irregularly sloping up from left to right.
An example would signify data-entry from a form;
Manual operation represented by a trapezoid with the longest parallel side upmost, to represent
an operation or adjustment to process that can only be made manually.