What is the difference between operator new and the new
operator?
Answers were Sorted based on User's Feedback
Answer / vrushali
Operator new is a function name used for operator overloading and new operator is used for allocating memory
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / guest
operator new is just like malloc and
new is the conventinal new in C++
Is This Answer Correct ? | 3 Yes | 4 No |
Answer / man
operator new is nothing
And new operator is used to allocate memory on the heap
Is This Answer Correct ? | 0 Yes | 6 No |
What is static function and static class?
How many pointers are required to reverse a link list?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
How did c++ get its name?
What is virtual constructor paradigm?
What does std :: flush do?
What is the difference between a "copy constructor" and an "assignment operator" in C++?
the first character in the variable name must be an a) special symbol b) number c) alphabet
What are libraries in c++?
What are multiple inheritances (virtual inheritance)?
Problem 5: Hero's Formula is A method for calculating the area of a triangle when you know the lengths of all three sides. Let a, b, c be the lengths of the sides of a triangle. The area is given by:A= pp-ap-b(p-c) | wherep= a+b+c2 | | Write a C-language code to calculate area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program calculates.
What are the advantages of prototyping?