How to create a constant in swift programming?



How to create a constant in swift programming?..

Answer / Yudhbir Singh

In Swift, you can create a constant by declaring a variable and prefixing it with the keyword let. For example: let myConstant = 5.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Swift Interview Questions

Is swift written in c++?

1 Answers  


What is the difference between array and nsarray?

1 Answers  


How can you define a base class in swift?

0 Answers  


Is swift memory safe?

1 Answers  


Explain enum?

1 Answers  


What is the use of break statement in swift language?

1 Answers  


How will you connect ui?

1 Answers  


How to convert nsmutablearray to swift array in swift?

1 Answers  


Is swift worth learning 2019?

1 Answers  


What is “defer”?

1 Answers  


What is lazy var in swift?

1 Answers  


Explain how Swift program is deployed?

1 Answers  


Categories