difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / asri
c is procedure oriented language and gives importance to
procedure that is functions rather than data.c is middle
level language.
c++ is object oriented language and gives importance to
object that is data
c++ is high level language
| Is This Answer Correct ? | 393 Yes | 36 No |
Answer / abhisek pramanik
1] c is procedure oriented programing & c++ is object
oriented programing.
2] we can't do programing through class in c,but we can do
in c++.
3] c is top to bottom programing approach, c++ is bottom to
top programing approach.
4] c++ is high level language,c is low level language.
5] c++ accept all the feature & function of of c & its own
properties,but it is not happened in c.
6] data can move in c openly arround in the system from
function to function.In c++ data is hidden can't be
accessed by external function.
| Is This Answer Correct ? | 124 Yes | 18 No |
Answer / kaustubh mahajan
C is procedure oriented programming & c++ is object
oriented programming.
c++ contains classes & object,c++ does not require format
specifier for printing & scanning variables.
| Is This Answer Correct ? | 131 Yes | 31 No |
Answer / mahesh
=>c does not a class/object concept
=>c++ provides data encapsulation,data
abstraction,polymorphism.
=>c++ support all c syntax
=>in c passing value to a function is "call by value"
where c++ its "call by reference"
| Is This Answer Correct ? | 173 Yes | 78 No |
Answer / manish jangid
C++ is the hight level language, but C is low level
language.
C++ can support of all function of C, but C can't support
of all function of C++.
We can work with Class in C++, But we can't work with Class
in C
C++ is a object oriented language but C is not OOPS
C is the Top to bottom , but C++ is bottom to Top language.
| Is This Answer Correct ? | 110 Yes | 54 No |
Answer / muneeswari
c is structured design,c++ is object oriented design
c is top-down approach,c++ is bottom-top approach
c++ is required acces specifiers,c is not required acces
specifiers
c++ is client server model
| Is This Answer Correct ? | 55 Yes | 8 No |
Answer / satish kumar sinha
*c is the procedure oriented programing.
*c++ is the object oriented programing.
*c give the important on the procedure istade of data.
*c++ give the important on the data.
*c the data can pass through the fuction to fuction.
*c++ the data is hide in the fuction and the data is stolen
through the external function.
*c is the low level language.
*c++ is the high level language.
*c++ havig extra benifits data can hide in the fuction
(encapsulation),polymorphism,templets,file
handeling,inharitance.
| Is This Answer Correct ? | 54 Yes | 13 No |
Answer / munish kumar
Main difference between c and c++ are:
1.) In c++, there is strict typechecking and in c, there is
no strict typechecking. So, many programes which can
compiled by c compiler cannot be compiled by c++ compiler.
2.) In c, there is only "EARLY BINDING", whereas in c++,
there are "EARLY BINDING & LATE BINDING".
3.)C++ IS HIGH LEVEL LANGUAGE BUT 'C' IS LOW LEVEL LANGUAGE.
4.)In c++,there is a new concept of "INLINE FUNCTIONS",
whereas in c, there are macros.
5.)C++ is a object oriented language but C is not OOPS.
| Is This Answer Correct ? | 58 Yes | 19 No |
Answer / shanky garg
1 C++ OBJECT ORIENTED PROGRAMMING BUT 'C' IS PROCEDURE
ORIENTED PROGRAMMING
2 C++ IS HIGH LEVEL LANGUAGE BUT 'C' IS LOW LEVEL LANGUAGE
3 C++ IS GOING TO BOTTOM TO TOP BUT 'C' IS GOING TO TOP TO
BOTTOM
| Is This Answer Correct ? | 57 Yes | 29 No |
Answer / sumanth
c is procedure oriented language and gives importance to
procedure that is functions rather than data.c is middle
level language.
c++ is object oriented language and gives importance to
object that is data
c++ is high level language
c++ havig extra benifits data can hide in the fuction
(encapsulation),polymorphism,templets,file
handeling,inharitance.
c is structured design,c++ is object oriented design
c is top-down approach,c++ is bottom-top approach
c++ is required acces specifiers,c is not required acces
specifiers
c++ is client server model
In c++,there is a new concept of "INLINE FUNCTIONS",
whereas in c, there are macros.
C++ is a object oriented language but C is not OOPS.
| Is This Answer Correct ? | 23 Yes | 1 No |
How do you write a function that can reverse a linked-list?
class base { public: int fun(int) {} }; class base2 { public: int fun(float) { } }; so here qustion is both function either function overloading or over riding;
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 )?
How do I tokenize a string in c++?
How can you link a c program with a c function?
What is the average salary of a c++ programmer?
What are c++ tokens?
Which one is better- macro or function?
What's the order in which the objects in an array are destructed?
what are the iterator and generic algorithms.
What does the nocreate and noreplace flag ensure when they are used for opening a file?
Why the usage of pointers in C++ is not recommended ?