Define virtual constructor.
What is class syntax c++?
What's the order in which the objects in an array are destructed?
What is a parameterized type?
What is exception handling in C++?
How is c++ used in the real world?
Can we define a constructor as virtual in c++?
What are the uses of pointers?
What is a template in c++?
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.
int main() { int i ,a[i]; i = 0; a[i] = 10; cout<< a[i] << endl; return 0; } What will be output of this program?
What is realloc() and free()? What is difference between them?
When one must use recursion function? Mention what happens when recursion functions are declared inline?