5 years ago in C++ Functions

What is true about inline functions ?

[A] It's a compulsion on the compiler to make function inline
[B] It's a request to the compiler to make te function inline
[C] It's the indication to the compiler that the function is recursive
[D] It's the indication to the compiler that the function is member function
Loading...
Next Question

Overall Stats

Attempted 180
Correct 48
Incorrect 46
Viewed 86

Answers

Guest
Guest
Anisha Lamsal
Anisha Lamsal - 1 month ago

Anisha Lamsal from Kathmandu, Nepal is saying It's a request to the compiler to make te function inline is correct answer

Tanya Sabarwal
Tanya Sabarwal - 2 months ago

Tanya Sabarwal from Hyderabad, India is saying It's the indication to the compiler that the function is recursive is correct answer

Diksha Nasa
Diksha Nasa - 2 months ago

Diksha Nasa is saying It's a request to the compiler to make te function inline is correct answer

Vivek Kumar Dheerajbhai Sosa
Vivek Kumar Dheerajbhai Sosa - 2 months ago

Vivek Kumar Dheerajbhai Sosa is saying It's the indication to the compiler that the function is member function is correct answer

Anc Patel
Anc Patel - 2 months ago

Anc Patel is saying It's a compulsion on the compiler to make function inline is correct answer

Related Questions

Which member function of class cannot modify its objects attributes ?

  • [A] friend functions
  • [B] Private member functions
  • [C] Constant member functions
  • [D] Static member functions

Which of the following function / type of function cannot be overloaded?

  • [A] Member function
  • [B] Static function
  • [C] Virtual function
  • [D] Both B and C

A friend function

  • [A] is declared as a friend & defined elsewhere in the program
  • [B] is always an inline function
  • [C] created objects without initialization
  • [D] May be a static member function of the class

Which of the following statement is correct?

  • [A] C++ enables to define functions that take constants as an argument.
  • [B] We cannot change the argument of the function that that are declared as constant.
  • [C] Both A and B.
  • [D] We cannot use the constant while defining the function.

The library function exit() causes an exit from ?

  • [A] The loop in which it occurs
  • [B] The block in which it occurs
  • [C] The function in which it occurs
  • [D] The program in which it occurs