FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Why did Stroustrup choose to base C++ on C?
A
Flexibility
B
Efficiency
C
Availability
D
Portability
E
All of the Above
Explanation: 

Detailed explanation-1: -Remembering his PhD experience, Stroustrup set out to enhance the C language with Simula-like features. C was chosen because it was general-purpose, fast, portable and widely used.

Detailed explanation-2: -C is called structured programming language because a program in c language can be divided into small logical functional modules or structures with the help of function procedure.

Detailed explanation-3: -C++ was developed by Bjarne Stroustrup at Bell Laboratories over a period starting in 1979. Since C++ is an attempt to add object-oriented features (plus other improvements) to C, earlier it was called as “C with Objects”. As the language developed, Stroustrup named it as C++ in 1983.

Detailed explanation-4: -The base or father of programming languages is ‘ALGOL. ‘ It was first introduced in 1960.

Detailed explanation-5: -Compared to C, C++ has significantly more libraries and functions to use. If you’re working with complex software, C++ is a better fit because you have more libraries to rely on. Thinking practically, having knowledge of C++ is often a requirement for a variety of programming roles.

There is 1 question to complete.