ios - Does this type casting assign the address or the data? -


cell of type uitableviewcell*

locationcell *locationcell = (locationcell *)cell; 

is assigning address of cell locationcell , preserving same instance of object? equal locationcell *locationcell = &cell?

if cell variable of type locationcell * there no need cast. if cell type (such uitableviewcell *), cast 1 thing - tells compiler know better. know object type , not type indicated variable's declaration.

the value isn't changed in way. in words, yes, preserving same instance of object. not @ last sentence.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -