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
Why do we use polymorphism in oops?
What is difference between multiple inheritance and multilevel inheritance?
What is object and example?
What is this pointer in oop?
What is oops and why we use oops?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What is abstract class in oops?
What are different oops concepts?
What is abstraction and encapsulation?
What is constructor overloading in oop?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What makes a language oop?
Is react oop?
Can a varargs method be overloaded?
How oops is better than procedural?