Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Programming language definition

A programming language is an artificial language designed to communicate instructions to


a machine, particularly a computer. Programming languages can be used to create programs that
control the behavior of a machine and/or to express algorithms precisely.

A vocabulary and set of grammatical rules for instructing a computer to perform specific
tasks. The term programming language usually refers tohigh-level languages, such
as BASIC, C, C++, COBOL, FORTRAN, Ada, and Pascal . Each language has a unique set
of keywords (words that it understands) and a special syntax for organizing program instructions.
High-level programming languages, while simple compared to human languages, are more
complex than the languages the computer actually understands, called machine languages. Each
different type of CPU has its own unique machine language.

C ( programming language)
C is a general-purpose computer programming language developed between 1969 and 1973
by Dennis Ritchie at the Bell Telephone Laboratories for use with the UNIX operating system.

C has proved to be a powerful and flexible language that can be used for a variety
of applications, from business programs to engineering. C is a particularly popular language
for personal computer programmers because it is relatively small , it requires less memory than
other languages

C++
A high-level programming language developed by Bjarne Stroustrup at Bell Labs. C++
adds object-oriented features to its predecessor, C.

C++ is one of the most popular programming language for graphical applications, such as
those that run in Windows and Macintosh environments.
Difference between C and C++

C++, as the name suggests is a superset of C. As a matter of fact, C++ can run most of C code
while C cannot run C++ code. Here are some majors differences between C++ & C.

1. C follows the procedural programming paradigm while C++ is a paradigm language


(procedural as well as object oriented) In case of C, importance is given to the steps or
procedure of the program while C++ focuses on the data rather than the process. Also, it
is easier to implement/edit the code in case of C++ for the same reason.
2. in case of C, the data is not secured while the data is secured(hidden) in C++ . This
difference is due to specific OOP features like Data Hiding which are not present in C.
3. C is function-driven while C++ is object-driven Functions are the building blocks of a C
program while objects are building blocks of a C++ program.
4. C input/output is based on library and the processes are carried out by including
functions. C++ i/o is made through console commands cin and cout.

You might also like