class whatever {
var optional_dict : [Int : Int]? = nil
init() {
optional_dict![10] = 100
print(optional_dict)
}
}
when i try to print it showed like this "fatal error: unexpectedly found nil while unwrapping an Optional value" I don't know what mistake am doing. Could someone help me to sort it out. Thanks in advance.