what is the main difference between c and c++?

Answer Posted / jayasrinivas.donavalli

The main Difference between C and C++ is C is Object Based
program.that means in C also we have Object based
Applications like Structures and Unions.
C++ is Object Oriented Language that means entire
application will be depending on Objects only.
Uses of Object oriented Program is Reusability,Increase the
effiency of the program and it gives extra security like
Private data is also be there in C++.
C++ is the Advanced version of C.
In otherwords we say c++ supports both Object based and
Object oriented Applications

Is This Answer Correct ?    959 Yes 221 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is this pointer in oop?

776


What is a null tree?

846


What is balance factor?

803


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1958


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

2796


Write a program to reverse a string using recursive function?

2013


Get me a number puzzle game-program

1913


What is abstraction with example?

818


What is difference between inheritance and polymorphism?

765


Why is polymorphism used?

766


What is the point of polymorphism?

761


What does oop mean in snapchat?

911


What are the benefits of interface?

793


What are functions in oop?

776


Get me an image implementation program.

1729