I want to pass the value as reference.
var a = "*"
var b = ""
func hello(c: inout String){
b = c
a = "**"
print(b)
print(c)
}
hello(c: &a)
The output for the above is
B: *
C: **
I want to change the value of B as well as in, I want to pass the reference to B not the value
I want the output to be
B: **
C: **
Any help would be appreciated. Thanks in advance