what is the main difference between c and c++?

Answer Posted / vivek goyanr

In C memory allocation is done with malloc statement whereas
in C++ it is done through new keyword.Also memory is
deallocated in C using free statement while in C++
deallocation takes place through delete.

Is This Answer Correct ?    452 Yes 108 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is constructor overloading in oop?

849


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1618


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

2360


What is interface in oop?

872


Write a program to sort the number with different sorts in one program ??

2108


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?

3104


What is the example of polymorphism?

740


Who invented oop?

835


What is polymorphism and why is it important?

763


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3817


What are the features of oop?

827


What is an example of genetic polymorphism?

864


What is purpose of inheritance?

843


What is object in oop?

872


What is difference between oop and pop?

864