हिंदी

When a member function is defined inside th.e class, then it is treated as ______ function. - Computer Science 1

Advertisements
Advertisements

प्रश्न

When a member function is defined inside th.e class, then it is treated as ______ function.

विकल्प

  • Inline

  • outline

  • External

  • Virtual

MCQ
रिक्त स्थान भरें
Advertisements

उत्तर

When a member function is defined inside the class, then it is treated as inline function.

Explanation:

  • When a member function is defined inside a class, the compiler treats it as an inline function by default.
  • An inline function replaces a function call with the function body at compile time, reducing the overhead of function calls (especially for small functions).
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2022-2023 (March) Official

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×