P

Priyanka Tomar • 35.28K Points
Coach

Q. Observe following function declaration and choose the best Ans:: int divide ( int a, int b = 2 )

  • (A) Variable b is of integer type and will always have value 2
  • (B) Variable a and b are of int type and the initial value of both variables is 2
  • (C) Variable b is international scope and will have value 2
  • (D) Variable b will have value 2 if not specified when calling function
  • Correct Answer - Option(D)
  • Views: 45
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics