Differentiate between C and C++.



Differentiate between C and C++...

Answer / Harshit Dwivedi

C is a procedural programming language developed in the 1970s, while C++ was created by Bjarne Stroustrup as an extension of C with object-oriented features added in the 1980s. C++ supports classes, inheritance, polymorphism, and exception handling. It also offers Standard Template Library (STL) for common data structures and algorithms.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is the use of function pointer?

1 Answers  


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

1 Answers  


What is a local variable?

1 Answers  


What is the difference between C and CPP?

1 Answers   iNautix,


What are different types of typecasting supported by C++

1 Answers   CA,


What is an adaptor class or wrapper class in c++?

1 Answers  


What are the conditions that have to be met for a condition to be an invariant of the class?

1 Answers  


What can I safely assume about the initial values of variables which are not explicitly initialized?

1 Answers  


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

1 Answers  


int f() { int I = 12; int &r = I; r += r / 4; int *p = &r; *p += r; return I; } Referring to the sample code above, what is the return value of the function "f()"? a) 12 b) 15 c) 24 d) 17 e) 30

2 Answers   AIG, Quark,


What is a namespace in c++?

4 Answers  


How does the copy constructor differ from the assignment operator (=)?

1 Answers  


Categories