The book gave me a choice as to which one to use to access a field in a Struct after I passed a pointer of the struct as a parameter (I hope I said all that right).
(*myPtr).number
or
myPtr->number
It says both are the same but I remember looking over a little Objective C code and I saw people using the (dot). Will both of these work on Objective-C since it is built on top of C or use the (dot) version if my next step is Object-C? The book said more people programing in C use this version myPtr->number.
-Lars
(*myPtr).number
or
myPtr->number
It says both are the same but I remember looking over a little Objective C code and I saw people using the (dot). Will both of these work on Objective-C since it is built on top of C or use the (dot) version if my next step is Object-C? The book said more people programing in C use this version myPtr->number.
-Lars