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

Mention what is the difference between Swift and ‘Objective-C’ language?

0 Answers  


What is “defer”?

0 Answers  


How to write a multiple line comment in swift?

0 Answers  


What are the half open range operators in swift?

0 Answers  


Explain mvc structure.

0 Answers  






How proficient are you in objective-c and swift? Can you briefly describe their differences?

0 Answers  


Is swift open source?

0 Answers  


Explain the difference between let and var in swift programming?

0 Answers  


What is difference between 'let' and 'var' declaration ?

1 Answers  


How should errors be handled in swift?

0 Answers  


What language is similar to swift?

0 Answers  


What type of objects are basic data types in swift?

0 Answers  


Categories