what is the main difference between c and c++?
Answer Posted / 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 |
Post New Answer View All Answers
What is encapsulation with example?
What is the real time example of inheritance?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Write a program to sort the number with different sorts in one program ??
What is object in oop with example?
program for insertion ,deletion,sorting in double link list
What are the 3 pillars of oop?
explain sub-type and sub class? atleast u have differ it into 4 points?
What is variable example?
How Do you Code Composition and Aggregation in C++ ?
How do you answer polymorphism?
can we make game by using c
How do you define social class?
Is abstract thinking intelligence?
What do you mean by Encapsulation?