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

1. Variable b is of integer type and will always have value 2

2. Variable a and b are of int type and the initial value of both variables is 2

3. Variable b is international scope and will have value 2

4. Variable b will have value 2 if not specified when calling function

  • d. Variable b will have value 2 if not specified when calling function
Subscribe Now

Get All Updates & News