what is the main difference between c and c++?
Answer Posted / nitish kumar jha
The main Difference between C and C++ is C is structure Based
programing language.that means in C also we have structure
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
i mean finally i want say that both are same because C&C++
both are language the main diffrence between them C is old
version language and C++ is latest programing language which
come modified of C language ....
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write a c++ program to display pass and fail for three student using static member function
What is polymorphism in oop example?
What is static modifier?
is there any choice in opting subjects like 4 out of 7
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is abstraction in oops with example?
What is an interface in oop?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
Why do we use polymorphism?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What are the benefits of interface?
What is encapsulation selenium?
What is the main feature of oop?