What will be the output of the following code?
func abc(p: Double...) -> Double {
var sm: Double = O
for number in p[
sm += number
I
return sm I Double{p.count)
I
print(abc(6, 7.25, 16.75))
Correct Answer:
10.0
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Swift MCQ Questions