Computer Languages
Computer Languages
communicating an algorithm
It provides a linguistic framework for describing
computations
What is a Programming Language
syntax rules.
Why Are There So Many Programming
Languages ………….???
Why does some people speak French?
Programming languages have evolved over time as
sli
de
7
Types in C
Main difference between B and C
Syntax of type rules influenced by Algol 68
sli
de
8
Evolution of C
1973-1980: new features; compiler ported
◦ unsigned, long, union, enums
1978: K&R C book published
1989: ANSI C standardization
1. First Generation.
2. Second Generation.
First Generation Language (1GL)
• Represent the very early, primitive Computer languages
that consisted entirely of 1’s and 0’s- The actual language
that the computer understands (machine language)
• Machine language is machine
dependent as it is the
only language the computer
can understand.
– Very efficient code but very
difficult to write.
Second Generation Language (2GL)
• Visual Basic
• Java
• Java script
Fourth Generation Languages
A high level language (4GL) that requires fewer
instructions to accomplish a task than a third generation
language.
It tells that what to do and not concern how to do.
Used with databases
◦ Query languages
◦ Report generators
◦ Forms designers
◦ Application generators
Fifth Generation Languages
• Declarative languages
• Functional(?): Lisp, Scheme, SML
– Also called applicative
– Everything is a function
• Logic: Prolog
– Based on mathematical logic
– Rule- or Constraint-based
C++
• C++ is statically typed, free-form, multi paradigm
compiled, general purpose programming language. It is
regarded as a “Middle Level Language” as it comprises a
combination of both high and low level language features.
• Language Features:-
1. Operators and operator overloading.
2. Templates.
3. Objects.
4. Polymorphism.