article_myths about c and c++

3
Common Myths between C and C++ C++ is an advanced/incremental version of C and related to C as C is a kind of base of C++ , so people have many queries regarding the difference between the two. Although C++ is a bit complex as it provides many ad-on features, people have many myths in their minds regarding the two. They share a relationship like a father and a son; i.e. both are similar yet different in some aspects. 1. Complicated C++ Source: http://thumbs.dreamstime.com/z/laberinto-complejo-6657181.jpg C++ offers many ad-on features as compared to C. So these features in a way make it more secure, fast and reliable than C and not at all complicated rather a much better programming language than C. 2. C++ is slow

Upload: mehak-ahuja

Post on 22-Dec-2015

212 views

Category:

Documents


0 download

DESCRIPTION

article

TRANSCRIPT

Page 1: article_myths about c and c++

Common Myths between C and C++

C++ is an advanced/incremental version of C and related to C as C is a kind of base of C++ , so people have many queries regarding the difference between the two. Although C++ is a bit complex as it provides many ad-on features, people have many myths in their minds regarding the two. They share a relationship like a father and a son; i.e. both are similar yet different in some aspects.

1. Complicated C++

Source: http://thumbs.dreamstime.com/z/laberinto-complejo-6657181.jpg

C++ offers many ad-on features as compared to C. So these features in a way make it more secure, fast and reliable than C and not at all complicated rather a much better programming language than C.

2. C++ is slow

Source: http://blog.music-made-easy.com/wp-content/uploads/2011/07/1102894_95617690.jpg

Page 2: article_myths about c and c++

Due to extraneous function call, C language have lots of additional overheads, which C++ does not have. So in turn C++ is fast as compared to C. Also C++ makes use of the concept of object oriented, making it better than C.

3. C/C++ is a language

Source: http://www.esourceindia.in/images/c.jpg

There is no language defined as ‘C/C++’. Although, they share a relation like a father and a son, they have a lot of things which are uncommon. C++ has more things in common with any other object oriented language rather than C.

4. Next version of C is C++

Source: http://s427.photobucket.com/user/ameelmundo/media/the_evolution_of_man.jpg.html

C++ is an enhanced C language with object-oriented features embedded in C. It is not a new version of C, rather an enhancement of the language. The next version of C is C1x and not C++.

5. Knowing C++ means you know C

Page 3: article_myths about c and c++

We are Different!

Source: http://www.caracommunity.co.uk/wp-content/uploads/2013/03/different-cashback.jpg

Although, knowing C++, you may know the syntax of C, but you may not know the language. C++ is based on pure object oriented approach, so it is very different from C. Also, there is no way to translate C++ code to C.