why use -> (not .) with pointers?



Hi,

when accessing the variables in a struct: What's the reason why in C
you have -> and . instead of only . ? Are there cases in which the
compiler couldn't figure out what to do?

Felix
.



Relevant Pages

  • constants not constant?
    ... compiler). ... What's the reason for this syntax rule? ... Prev by Date: ...
    (comp.lang.c)
  • Re: change column datatype
    ... as I said the compiler didn't complain about that. ... > reason I couldn't find out about this error. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Gpp oddity
    ... a bug in the compiler. ... Of course that's the reason. ... Prev by Date: ...
    (rec.games.roguelike.development)
  • Re: change column datatype
    ... as I said the compiler didn't complain about that. ... reason I couldn't find out about this error. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Free FAT16 Filesystem
    ... being an honourable reason. ... Dave, I made every effort 3 weeks ago to have you understand that if you ... >>Murray did not mention Keil in his correspondence to you. ... >>both your compiler AND under Keil's, ...
    (comp.arch.embedded)

Quantcast