πŸ“Š C++
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
πŸ’¬ Discuss
βœ… Correct Answer: (D) Variable b will have value 2 if not specified when calling function

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
102
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Priyanka Tomar
Publisher
πŸ“ˆ
85%
Success Rate