मराठी
महाराष्ट्र राज्य शिक्षण मंडळएचएससी विज्ञान (संगणक विज्ञान) इयत्ता १२ वी

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×