is this line correct runtime?
------------------
if (a_class_pointe r && a_class_pointer->a_member()) .....;
------------------
first check if class memory allocated (if not pointer is 0)
and then run a class member
or
first run a class member (maybe unallocated)
and then check if class memory allocated (if not crashes)
or
it is compiler depended?
------------------
if (a_class_pointe r && a_class_pointer->a_member()) .....;
------------------
first check if class memory allocated (if not pointer is 0)
and then run a class member
or
first run a class member (maybe unallocated)
and then check if class memory allocated (if not crashes)
or
it is compiler depended?
Comment