What is the use of local and external parameters? and what if we want to print \() with something inside it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the use of local and external parameters? and what if we want to print \() with something inside it?

Can somebody help? Thanks in advance.

4th Sep 2016, 6:24 AM
Ruchi Gupta
Ruchi Gupta - avatar
1 Answer
+ 2
local parameters are used in the implementation of function and external is used while calling. answering ur second question, print("\(swift is easy)") you can print like this. no variable is used inside the \() so the compiler will print it as it is
4th Sep 2016, 7:56 AM
Karunya