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 #error and use of it?
What’s the special use of UNIONS?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
What is the difference between pure virtual function and virtual function?
What is the usage of the pointer in c?
What is difference between array and pointer in c?
Can we increase size of array in c?
When should a far pointer be used?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Why header files are used?
Write a program to check palindrome number in c programming?
why we wont use '&' sing in aceesing the string using scanf
Why doesnt that code work?
How do I swap bytes?
Why header file is used in c?