DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?

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


Please Help Members By Posting Answers For Below Questions

Write a C program in Fibonacci series.

638


Explain what is the use of a semicolon (;) at the end of every program statement?

740


Explain how can I manipulate strings of multibyte characters?

787


What is break in c?

590


What is a pointer in c plus plus?

698






What is difference between array and pointer in c?

542


What is ## preprocessor operator in c?

618


What is typedef example?

618


What does the error message "DGROUP exceeds 64K" mean?

729


What is c language in simple words?

598


Write a code of a general series where the next element is the sum of last k terms.

598


What are nested functions in c?

568


What are structural members?

576


What are the applications of c language?

628


Explain bit masking in c?

642