I have this doubt when I run this code both of them give me the same datatype as result. I know I am missing something really basic can someone please explain why ! and ? on a type gives the same datatype as result?
import UIKit
import Foundation
var unwrappedString: String!
var optionalString: String?
print("type of unwrappedString is:", type(of:unwrappedString))
print("type of optionalString is:", type(of:optionalString))
output is
type of unwrappedString is: Optional<String>
type of optionalString is: Optional<String>