Answer Posted / vignesh1998i
1) C is structured oriented language and C++ is an object oriented language
2) in C we must finish our decleration in the very next line of void main() , but in Cpp wherever u need a variable storage data , before that instruction we must declare it......
3) In C structures are used , in that only data members can only be declared and member functions not included , but in Cpp inside a class (same as strucutres) both data members as well as member functions can be used..
4) in Structure all the members and strucutre variables are global by default...... but in Cpp by default the data members are private.....
SIMILARITY :
1) both C & C++ uses Overloading concept....... (very important )
thank u
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is c language & why it is used?
Do you know the purpose of 'register' keyword?
How can I prevent another program from modifying part of a file that I am modifying?
I need testPalindrome and removeSpace
#include
How is a structure member accessed?
What is sorting in c plus plus?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What is quick sort in c?
What is the difference between constant pointer and constant variable?
What is pivot in c?
What are examples of structures?
What is merge sort in c?
What is pointers in c?
What is the significance of scope resolution operator?
How do you search data in a data file using random access method?