InterviewSolution
Saved Bookmarks
| 1. |
What is the meaning of a GUARD statement? What are the advantages of using Swift's GUARD statement? |
|
Answer» When one or more conditions are not met, a GUARD statement is used to TRANSFER PROGRAM control out of the scope. This remark AIDS in AVOIDING the doomsday pyramid. The following is the syntax of a GUARD statement: guard condition else{Statements} |
|