Is there something that we can do in C and not in C++?
Answers were Sorted based on User's Feedback
Answer / vaishnavi
there are many concepts that can be used in c++ where c
cannot support those concepts.
The following are some of those type of concepts:-
1.function overloading
2.operator overloading
3.templates
4.polymorphism
5.inheritence
6.data encapsulation
7.function over-riding
8.virtual functions
9.constructors & destructors
10. exceptional handling.
| Is This Answer Correct ? | 4 Yes | 10 No |
Explain the use of this pointer?
What is endianness?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
Given the following function definition: int doit(int &x, int y, int &z) { x = 3*x; y = y + 5; z = x+y; return z - 4; } int a = 5, b = 7, c = 9, d = 11; d = doit(a,b,c);
How do you master coding?
What is diamond problem in c++?
How many ways can a variable be initialized into in C++?
Explain shallow copy?
if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int1 < int2 && int2 < int 3
why c++ is not called strictly d super set of c?
How one would use switch in a program?
write the code that display the format just like 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1