what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / kk
The main difference between c and c++ is that " C is a
structured programming language while C++ is an object
programming language and also we have templates in C++ that
is not the case in C
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / himanshu sharma
in c data does not flow around the system eaisly
in c++ data flow around the system very eaisly.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ghopchand manghi
no any diff. between c and c++.the only diff is that in c++ there are two ++ sign
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / internet
C is basic language which is helpful in learning programming
languages. But, C++ is the advancement of the C language
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / swagatika sahu
c is not secure while c++ provides us security of data by using access specifiers like private,public,protected.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / anhr computer education
In C++ a variable can be defined at any where but in 'C' it
can be defined only followed by opening curley brace.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / praveen kumar maande
To simply say c with classes is called as c++.c does not support classes, where as c++ is mainly designed to support data security which can be achieved using classes.one more difference is c++ supports exception handling which c does not support.we can access both local and global variables if the are defined by same name using scope resolution operator in the same scope itself where as c doesn't support this.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / babita
C++ HAS FEATURES LIKE DATA ENCAPSULATION,POLYMORPHISM,REUSE
ABILITY OF THE OPERATORS AND OPERATOR OVERLOADING.THESE
FEATURES ARS NOT SUPPORTED BY C.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rajkishor yadav
In c mainly focus on data but in c++ mainly focus on object
rather than data,and in c++ we hide data other unauthorized
things by Encapsulation
It is structure Base Language but c++ object base Language.
| Is This Answer Correct ? | 1 Yes | 0 No |
What is property in oops?
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(); }
who is the founder of c++?
What is abstraction in oop?
pointers are support in C#? if yes then how to use it?
8 Answers Softvision Solution,
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is the difference between an object and a class?
When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??
Can you name some types of inheritance?
What is virtual destructor? Why?
3 Answers Agile Software, College School Exams Tests, CSC,
What do you mean by abstraction?
Differences between inline functions and non-inline functions?