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
Why interface is used?
What does <> mean pseudocode?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What do you mean by abstraction?
What is destructor oops?
What is difference between inheritance and polymorphism?
Can a destructor be called directly?
Why do we use polymorphism in oops?
Can you explain polymorphism?
What is data binding in oops?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is interface? When and where is it used?
What is inheritance in oop?
How to use CMutex, CSemaphore in VC++ MFC
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction