5 years ago in C++ Functions

Which of the following type of function is an ideal candidate for being declared inline ?

[A] A function that is small and is not called frequently
[B] A function that is small and is called frequently
[C] A function that is not small and is not called frequently
[D] A function that is not small and is called frequently
Loading...
Next Question

Overall Stats

Attempted 178
Correct 45
Incorrect 31
Viewed 102

Answers

Guest
Guest
Katreen Ebraheem
Katreen Ebraheem - 5 days ago

Katreen Ebraheem from Egypt is saying A function that is small and is not called frequently is correct answer

abc xyz
abc xyz - 2 months ago

abc xyz is saying A function that is not small and is called frequently is correct answer

Anc Patel
Anc Patel - 2 months ago

Anc Patel is saying A function that is small and is not called frequently is correct answer

indhuja indhuja
indhuja indhuja - 4 months ago

indhuja indhuja from Erode, India is saying A function that is small and is called frequently is correct answer

Sarita Nauriya
Sarita Nauriya - 5 months ago

Sarita Nauriya from Hyderabad, India is saying A function that is small and is called frequently 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

The signature of a function is its ..... ?

  • [A] Function code
  • [B] Prototype
  • [C] Call
  • [D] Parameter list

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 function declaration is/are incorrect?

  • [A] int Sum(int a, int b = 2, int c = 3);
  • [B] int Sum(int a = 5, int b);
  • [C] int Sum(int a = 0, int b, int c = 3);
  • [D] Both B and C are incorrect.
  • [E] All are correct.

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);