Thread: . vs ->
View Single Post
Old 02-22-2004, 11:34 PM   #3 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
the . operator is used to to access a member of a local struct or class instance. the -> operator is for accessing members of a pointer to a struct or class instance.

essentially, s->m is equal to (*s).m
and s.m is equal to (&s)->m
joe_bruin is offline   Reply With Quote