Seen quite a bit of code example with -> in them, like this
*hostEntry->h_addr_list
but what's this -> as it does not seem to be mentioned in the various tutorials I've been learning from
Thanks
dicky
Seen quite a bit of code example with -> in them, like this
*hostEntry->h_addr_list
but what's this -> as it does not seem to be mentioned in the various tutorials I've been learning from
Thanks
dicky
you can access the elements of a struct with this "->" operater, if there is just a pointer to the struct.
Look at the section explaining the -> operator.
http://www.iota-six.co.uk/c/h3_structs_part_2.asp
Help populate a c/c++ help irc channel
server: irc://irc.efnet.net
channel: #c
FAQ Entry for you to read:
http://faq.cprogramming.com/cgi-bin/...&id=1073086407
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
in addition to what iceball said it can also be used to access objects of a class using a pointer.
alvarorahul says...
Only as stated with a pointer to an instance (object) of the class.in addition to what iceball said it can also be used to access objects of a class using a pointer.
Besides that is C++ and this is the C message board.
hoping to be certified (programming in c)
here's the news - I'm officially certified.
How could you forget unions?
Quzah.
Hope is the first step on the road to disappointment.
quite easilyOriginally Posted by quzah