Answer Posted / keerthana
realloc() is used to reallocate the memory when the memory
which is already allocate is not sufficient
free() is used to free the memory space
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Why is there no multiple inheritance?
What is object-oriented programming? Webopedia definition
What is polymorphism in oops with example?
Give two or more real cenario of virtual function and vertual object
Which language is not a true object oriented programming language?
What are the features of oop?
what is graphics
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is polymorphism what is it for and how is it used?
What is the highest level of cohesion?
What are the benefits of polymorphism?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What do you mean by abstraction?
write a C++ program for booking using constructor and destructor.
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?