Optional vs Implicitly unwrapped optional in Swift || ios interview questions

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 11

  • @akshaykumar-qj2kx
    @akshaykumar-qj2kx 2 роки тому

    well done Nilesh. Nice presentation.

    • @AppDeveloperPoint
      @AppDeveloperPoint  2 роки тому

      Thanks for watching. Do watch latest videos on ViewThatFits ua-cam.com/video/a0YhnPoAnVU/v-deo.html

  • @praatul2
    @praatul2 2 роки тому

    Even String1 dont have memory allocated and throwing error also. The print statement is working and an address is getting printed. why?? (Video time at 2:27)

    • @AppDeveloperPoint
      @AppDeveloperPoint  2 роки тому

      No... For String1 print statement will not work it will give you error. And it will not have any address. You can try running code in playground

    • @praatul2
      @praatul2 2 роки тому

      @@AppDeveloperPoint Thanks for replying me. Glad to see it.
      At the mentioned time please check at line no 19 parameter. its's String1 as parameter in the third withUnsafePointer. Whereas the print statement mentioned there as "string 2 address is". Thats the reason in console there were two times the string 2 address print statement executed.
      The same time warning also has been thrown, due to this I got the confusion.

    • @AppDeveloperPoint
      @AppDeveloperPoint  2 роки тому +1

      Yes I saw that... It's the problem with editing of video.

  • @Rahulkumar-bn4gs
    @Rahulkumar-bn4gs 2 роки тому

    Good one 👍

  • @saravananraju528
    @saravananraju528 2 роки тому

    Kindly make an example for optional chaining in iOS swift.

    • @AppDeveloperPoint
      @AppDeveloperPoint  2 роки тому

      Thanks for watching... Noted. On the way. Subscribe to get notified. 😊

    • @saravananraju528
      @saravananraju528 2 роки тому

      @@AppDeveloperPoint Thanks for noted. Already subscribed.