Commonly Asked C++ Interview Questions What are the differences - TopicsExpress



          

Commonly Asked C++ Interview Questions What are the differences between C and C++? 1) C++ is a kind of superset of C, most of C programs except few exceptions (See this and this) work in C++ as well. 2) C is a procedural programming language, but C++ supports both procedural and Object Oriented programming. 3) Since C++ supports object oriented programming, it supports features like function overloading, templates, inheritance, virtual functions, friend functions. These features are absent in C. 4) C++ supports exception handling at language level, in C exception handling is done in traditional if-else style. 5) C++ supports references, C doesnt. 6) In C, scanf() and printf() are mainly used input/output. C++ mainly uses streams to perform input and output operations. cin is standard input stream and cout is standard output stream. There are many more differences, above is a list of main differences.
Posted on: Wed, 10 Dec 2014 08:17:49 +0000

Trending Topics



Recently Viewed Topics




© 2015