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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -