+ 1

trying many time but i can not solve this code helb me

func calc(num: inout Int) { num = num*5 } var a = 8 calc(num: )

27th Jan 2019, 2:51 PM
Mohamed Bashandy
Mohamed Bashandy - avatar
1 Answer
+ 1
func calc(num: inout Int) { num = num*5 } var a = 8 calc(num: &a) print(a)
27th Jan 2019, 9:20 PM
Rowsej
Rowsej - avatar