function with parameter swift

func fullName(fName:String,lName:String) {
let myFullName:String = "\(fName) \(lName)"
print(myFullName)

}

//calling the parameter
fullName(fName: "Hi", lName: "Hello")

/****************/
non return type functions are called void functions 
and return type functions are called non-void functions
Previous
Next Post »

ConversionConversion EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng