Sail E0 Webinar
Question
One of the following is an erroneous function definition, can you spot it
Options:
A .  def functionName(x:Int,y:Int):Int=x+y
B .  def functionName(x:Int,y:Int):Int={return x+y}
C .  def functionName(x:Int,y:Int):Int{x+y} ()
D .  def functionName(x:Int,y:Int)={x+y}
Answer: Option D





Submit Your Solution Below and Earn Points !

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers