Have any Question?

You can ask below or enter what you are looking for!

In-Out parameters in Swift

By default function parameters are constants in Swift. If you attempt to change a parameter within a function you will get a compiler error. To Solve this issue and enable a function to have an effect outside its scope we should use In-Out parameters.