What are the advantages of C++ programming compared to C
programming?
Answers were Sorted based on User's Feedback
Answer / geeta.e.sutar
AS COMPARE TO C PROGRAMMING C++ HAVE MORE ADVANTEGES;
BASICALLY C++ IS A HIGH LEVEL LANGUAGE,AND IT SUPPORTS ALL
FUCTIONS OF C,AND C++ SUPPORTS POLYMORPHISM,DATA
ENCAPSULATION,CLASSES AND OBJECTS.ITS A BOTTOM TO TOP
PROCEDURE.
Is This Answer Correct ? | 16 Yes | 1 No |
Answer / krishnachaitanya
c++ provides security to the data,c doesn't provide any
security to the data this is main advantage of c++ over than
c and c++ supports all concepts of c and it introduces
object oriented concepts like
objects,inheritance,polymorphism..etc.c++ programs are
useful for real-time purpose but c doesn't support.c++
introduces class concept.by using classes we can do
real-time projects.
c++ follows bottom-up approach but c follows top-down approach.
Is This Answer Correct ? | 12 Yes | 0 No |
In a function declaration what does extern means?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
What can I use instead of namespace std?
What is null pointer and void pointer and what is their use?
write a C++ programming using for loop: * * * * * * * * * *
How to create a pure virtual function?
Which algorithm do you like the most? Why?
difference between macro and function?
Define pure virtual function?
Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?
What is auto used for in c++?
What does '\r' and '\b' mean? Please explain with example.