Question
What are viable functions?

Answers

Viable functions are the ones that can possibly be resolved into a function call; they are a subset of candidate functions. For example:
void f();
void f(short){/*do something*/};
void f(double){ /*do something*/};
void main(){
f(5.6);// two viable functions f(short) and f(double).
}
In this case there are 2 viable functions f(short) and f(double), because we can have a standard conversion by which float can be converted to an short or float getting promoted to type double by promotion. But in this case the value 5.6 is promoted to a value of type double and is passed to that function.   Your Comment






Search
Can you Answer!!
  • Q Explain the DNA repair mechanisms
  • Q NET - Describe the steps to deploy a web service
  • Q Who is the newly appointed Chief Justice of Delhi High Court (DHC)?
  • Q What is cross site scripting?
  • Q What is the command in Winrunner ti invoke IE Browser?And once I open the IE browser is there a unique
  • Q How to create a new task and add it to the execution plan?
  • Q What is a method for assigning first.var and last.var to the by groupvariable on unsorted data?
  • Q 39th edition of International Yoga Festival is being held at?
  • Q What singer sang the song Spank Me
  • Q What is "Per Call" instance mode in WCF?
  • Q National Tiger Conservation Authority Biennial Award won by