Explain how you define variables in Swift language?



Explain how you define variables in Swift language?..

Answer / iosraj

Variables and constants must be declared before they are used. You announce constants with the let keyword and variables with the var keyword. Both variables and dictionaries are described using brackets. For example,

Var Guru99 = “This is Guru99”

Let ksomeconstant = 30

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Apple iOS Swift Interview Questions

Why we use delegates in swift?

0 Answers  


What is the function of swift?

0 Answers  


Explain some design patterns which we normally use during the app development.

0 Answers  


Explain the adapter and memento pattern?

0 Answers  


Why is swift important?

0 Answers  


Why swift is safe?

0 Answers  


What is the use of break statement in swift language?

0 Answers  


Who calls the main function of our app during the app launch cycle?

0 Answers  


What are type methods in swift?

0 Answers  


What is $0 in swift?

0 Answers  


What is thread in swift?

0 Answers  


What is benefit of using higher order functions?

0 Answers  


Categories