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 the highest level of cohesion?
State what is encapsulation and friend function?
What are classes oop?
What is the difference between procedural programming and oops?
write a program to find 2^n+1 ?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is pointer in oop?
What is the benefit of oop?
Is html an oop?
What do you mean by Encapsulation?
Can we create object of interface?
Please send ford technologies placement paper 2 my mail id
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Why is polymorphism important in oop?
what type of question are asked in thoughtworks pair programming round ?