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
Write a C program in Fibonacci series.
Explain what is the use of a semicolon (;) at the end of every program statement?
Explain how can I manipulate strings of multibyte characters?
What is break in c?
What is a pointer in c plus plus?
What is difference between array and pointer in c?
What is ## preprocessor operator in c?
What is typedef example?
What does the error message "DGROUP exceeds 64K" mean?
What is c language in simple words?
Write a code of a general series where the next element is the sum of last k terms.
What are nested functions in c?
What are structural members?
What are the applications of c language?
Explain bit masking in c?