Explain how you define variables in Swift language?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static in swift?

513


What is dynamic member lookup swift?

483


How to pass the data between view controllers?

523


Can you explain any three-shift pattern matching techniques?

488


What is lazy var in swift?

511






Can you explain regular expression and responder chain?

549


What is optional chaining?

486


What is the usage of switch statement in swift language?

506


Can enum be extended in swift?

468


How can you prioritize the usability of the demand process?

530


How will you define base class?

463


What is a guard statement? What is the benefit of using guard statement in swift?

469


What is the difference between array and nsarray?

518


What is interface in swift?

494


What is use of enum in swift?

457