This blog brings to life SCIENCE at its peak. Giving you latest updates on scientific researches, tutorials on computing, health updates, life facts, and also facts about Christianity in the modern age. It also acts as a study guide for students in all fields. Exposing all to the NEW WORLD!
Search
Monday, January 25, 2016
PROGRAMMING FACTS: AMAZING FACTS ABOUT C++ PROGRAMMING LANGUAGE.
1) The 1st thing to know about C++ is that it isn't easy language to learn. You can't learn C++ very fast. It takes time to learn C++. Dr.Bjarne Stroustrup (The creator of C++) also says that C++ is a complicated programming language.
2) One of the major strength of C++ is that it supports various programming styles. It is a multiparadigm programming language that not only supports Object oriented programming paradigm but also supports many other paradigms. And this is also the reason behind success of C++.
3) Concept of reference variables & operator overloading borrowed from Algol 68 programming language.
4) // single line comment borrowed from BCPL programming language.
5) comma , is used in 2 contexts as a operator & as a seperator.
6) Friend function enhances encapsulation if they used properly. Friend functions are very useful in operator overloading.
7) C++ is a strongly typed language & fortunately many warnings in C are compiler errors in C++. You must explicitly cast the void* appropriate pointer. Also, there are differences between int f() & int f(void) in C but both are having same meaning in C++.
8) There are 6 storage class specifiers in C++: auto, register, static, extern, typedef, mutable
9) The concept of inline functions borrowed from Ada programming language.
10) C++ got OO features from Simula67 Programming language.
11) C++ & C invented at same place: AT&T bell laboratories.
12) There are 84 keywords in C++.
13) Unexpected object slicing can occur when derived class object is passed to a method which expects object of a base class.
14) Default arguments can't be given in both function prototype & function definition.
15) Function overloading doesn't work with inheritance.
16) Destructor can be pure virtual.
Source: https://www.quora.com/Which-are-some-interesting-facts-about-C++-that-only-a-few-people-know
Labels:
c++,
FACTS,
programming
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment