what is the main difference between c and c++?
Answer Posted / aparna
C is a procedural language,but C++ is a object oriented
language.C does not support the operator overloading,but C++
support the operator overloading.In C memory allocation is
done with "malloc" statement.In C++ memory allocation is
done with "new" statement.In c memory deallocation is done
with "free" statement.In C++ memory deallocation is done
with "delete" statement.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What is constructor in oop?
What is meant by multiple inheritance?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
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
What is encapsulation in ict?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
How to hide the base class functionality in Inheritance?
What is difference between abstraction and encapsulation?
#include
Why do we use oops?
What does <> mean pseudocode?
What is the real life example of polymorphism?
What is overloading and its types?
What is abstraction in oop with example?
What are main features of oop?