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 |
What is the use of function pointer?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
What is a local variable?
What is the difference between C and CPP?
What are different types of typecasting supported by C++
What is an adaptor class or wrapper class in c++?
What are the conditions that have to be met for a condition to be an invariant of the class?
What can I safely assume about the initial values of variables which are not explicitly initialized?
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.
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
What is a namespace in c++?
How does the copy constructor differ from the assignment operator (=)?