0% found this document useful (0 votes)
10 views

L1

C language notes beginner to advanced

Uploaded by

Dhruv Maheshwari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

L1

C language notes beginner to advanced

Uploaded by

Dhruv Maheshwari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Introduction to C++ L1

1. History of C++
2. Facts
3. Features of C++
4.Comparison between C and C++

1. History of C++
C Language was created by Denis Ritche in 1972.
Denis worked at AT & T Labs which was further re-named as
Bell Labs.

Later in 1978, his collegue, Bjarne Stroustrup started further


enhancements in C Language added the concept of classes in it.
And finally developed C++ in 1979. But just with the addition of
classes, the language wasn't much differentiated by C. And was
thus called "C with classes".

But then Bjarne went further to add more features in C & finally
made enough enhancements in C to be called as a seperate
language called C++ in 1983.

Brief about Bjarne:


Bjarne Stroustrup was born in Aarhus, Denmark, in 1950. He
received a master's in mathematics from Aarhus University in
1975 and a PhD in computer science from Cambridge University
in 1979.

2. Facts about C++

- C++'s OOP (Object oriented Programming) aspect was i


inspired by Computer Simlutaion Language Simula67.
- Java is written using C/C++.
- Major operating systems of mordern times like Windows, Linux
are written in C/C++.
- C++ is world's 4th most used programming language.

3. Features of C++
- C++ is mid-level programming language. Because it can be
used to write high-level code as well as low-level code.

- Level-Level programming: It is machine dependent => it


depends on the hardware of the code and is thus
user-unfriendly, because the user has to understand the
machine's hardware to develop the code.
- High-Level programming:It is machine independent => it
doesn't depend on the hardwrae of the code and is thus, user-
friendly, because the user does not need to understand the
machine's hardware to develop the code.

- C++ supports the priciples of OOPs (Object Oriented


Programming).

- C++ joins three seperate programming traditions:


1. Procedural programming, represented by C language.
2. Object Oriented Programming tradition, represented by
class enhancements C++ adds to C.
3. Generic programming supported by C++ templates.

4. Comparison between C and C++:


- C++ is a superset of C Langage.
- C++ programs can use existing C software libraries.
- C follows top-down approach of programming.
- C++ follows bottom-up approach of programming.
- So, both the approaches of programming can be used in C++,
since, C++ uses features of both C and C++.
- C adopts procedure oriented programming.

Top-Down & Bottom-up:


These are two approaches of solving a problem and
both can be used to solve any problem usually.

Top-Down:
One big problem is taken and then segmented into
smaller problems.
BP = SP 1 + SP 2 + SP 3 and so on.....

Bottom-Up:
Smalller problemare added to solve one big problem.
SP 1 + SP 2 + SP 3 and so on......= BP

You might also like