7 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 117
Correct 24
Incorrect 27
Viewed 66

Answers

Guest
Guest
Prakhar Tiwari
Prakhar Tiwari - 1 month ago

Prakhar Tiwari is saying It's the indication to the compiler that the function is recursive is correct answer

Nischal Karki
Nischal Karki - 2 months ago

Nischal Karki is saying It's the indication to the compiler that the function is member function is correct answer

Niharika
Niharika - 2 months ago

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

INDRASHIS MITRA
INDRASHIS MITRA - 3 months ago

INDRASHIS MITRA is saying It's the indication to the compiler that the function is recursive is correct answer

Sahil Sandhu
Sahil Sandhu - 3 months ago

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

Related Questions

When an argument is passed by reference

  • [A] a variable is created in function to hold the argument value
  • [B] the function cannot access the argument value
  • [C] a temporary variable is created in the calling program to hold arguments value
  • [D] None of these

Which of the following function prototype is perfectly acceptable?

  • [A] int Function(int Tmp = Show());
  • [B] float Function(int Tmp = Show(int, float));
  • [C] Both A and B.
  • [D] float = Show(int, float) Function(Tmp);

Static Member function

  • [A] can access any other member function & member variables
  • [B] can access only static member variables & member functions
  • [C] can be only called through object of the class
  • [D] Returns only static data

Overloaded function

  • [A] are a group of functions,with the same value
  • [B] all have the same number and types of arguments
  • [C] make life simpler for programmers
  • [D] may fail unexpectedly due to stress

Which of the following statement is correct?

  • [A] Overloaded functions can have at most one default argument.
  • [B] An overloaded function cannot have default argument.
  • [C] All arguments of an overloaded function can be default.
  • [D] A function if overloaded more than once cannot have default argument.