Differences between inline functions and non-inline functions?
Answer Posted / ashu_deepu
inline function are those function in which the code is just inserted where the function is declared.
it is generally used for function which are small in size and don,t involve any loop.
it just a way to decrease the time of function call.
Is This Answer Correct ? | 12 Yes | 3 No |
Post New Answer View All Answers
What is property in oops?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is abstraction in oops with example?
What is overriding vs overloading?
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’.
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is abstraction encapsulation?
Why do pointers exist?
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.
Why interface is used?
Why is static class not inherited?
class type to basic type conversion
What is abstraction and encapsulation?