What is a class template in c++?
No Answer is Posted For this Question
Be the First to Post Answer
class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; What is the access level for the member function "setx" in the class "derived" above? a) private b) local c) global d) public e) protected
what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?
What is the difference between function overloading and operator overloading?
Define basic type of variable used for a different condition 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.
Is there a datatype string in c++?How is the memory allocation?
Explain the virtual inheritance in c++.
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
How do you establish a has-a relationship?
What is pair in c++?
List the advantages of inheritance.
How would you use the functions randomize() and random()?