Explain how multiple line comment can be written in swift?
Answer / iosraj
Multiple line comment can be written as forward-slash followed by an asterisk (/*) and end with an asterisk followed by a forward slash (*/).
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the control transfer statements that are used in ios swift?
The following code snippet results in a compile time error: struct IntStack { var items = [Int]() func add(x: Int) { items.append(x) // Compile time error here. } } Explain why a compile time error occurs. How can you fix it?
What are the best ways of achieving concurrency in ios?
What is difference between xcode and swift?
What is an attribute in swift?
What are methods in swift?
What is forced unwrapping? Why is it potentially unsafe?
What is data structure in swift?
What is the use of continue statement in swift loop?
What is a swift class?
What is “defer”?
What is the synonym of swift?