what is the main difference between c and c++?
Answer Posted / rajeev kumar
Actually c is a procedural programming language which
cann't face the real world problem. It has some drawback
like a global data is shared by all function and if in a
large program it is find out difficult that which function
uses which data.
On the other hand c++ is an object oriented programming
language which eliminate some pitfall of conventional or
procedural programming language. It is a concept or
approach for designing a new software. It is nothing to do
with any programming language although a programming
language which support the oops concept to make it easier
to implement.
This is the main different between c and c++.
Is This Answer Correct ? | 3762 Yes | 477 No |
Post New Answer View All Answers
What is encapsulation oop?
What is destructor give example?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
Why do pointers exist?
write a program to find 2^n+1 ?
What are the benefits of interface?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
Why is oop better than procedural?
What is inheritance write a program to show use of inheritance?
What is constructor overloading in oop?
which feature are not hold visual basic of oop?
Why oops is important?
What is the purpose of enum?
What does oop mean in snapchat?
can inline function declare in private part of class?