difference between c and c++?
Answer Posted / muhammad asim
1.C language is easy as compare to c++.Because in one side
c++ show inheritance so another side its show the
properties of encapslution which are the contrast or weaken
point to inheritance due to encapslution.
2.In C the function pass from one funtion to another
several times while in C++ the function is hidden through
some external function.
3.C is a procedural or structural oriented language uses
ups-down approch and focus on procedure rather than data
while C++ is an object-oriented language uses down-ups
approch and focus on data rather than procedure.
4.C language uses pointer concept while there is no concept
of pointer in C++.
5.C++ is a prototype or a strick typechecking where C is
free of such things, so most programmes which is compiled
by C compiler cannot be compiled by C++ compiler.
| Is This Answer Correct ? | 13 Yes | 5 No |
Post New Answer View All Answers
What is function overloading in C++?
What do you mean by enumerated data type?
What are c++ manipulators?
what are the types of Member Functions?
Should the member functions which are made public in the base class be hidden?
Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.
How do I run a program in notepad ++?
Can we use struct in c++?
What are the vectors in c++?
What is stoi in c++?
Describe protected access specifiers?
what are Access specifiers in C++ class? What are the types?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What does new in c++ do?
What are the differences between malloc() and calloc()?