Re: pointer q



"Joe Smith" <grumpy196884@xxxxxxxxxxx> writes:

Had you asked me about:

int *qwe;
long *qwr;

I would have said the pointers declared were--while pointng to different
types--of the same type. Why am I wrong?

"qwe" is of type "pointer to int".
"qwr" is of type "pointer to long".
Those are different types.
--
"If I've told you once, I've told you LLONG_MAX times not to
exaggerate."
--Jack Klein
.



Relevant Pages

  • pointer q
    ... A recent post of mine showed a sufficiently large gaffe on pointers as to ... One dreams himself variable names: qwe, qwr, writes ... int qwe; ...
    (comp.lang.c)
  • Re: pointer q
    ... One dreams himself variable names: qwe, qwr, writes ... int qwe; ...
    (comp.lang.c)
  • Re: pointer q
    ... qwe, qwr, writes ... int qwe; ... You can do the assignments with explicit conversion, ...
    (comp.lang.c)
  • Re: pointer q
    ... qwe, qwr, writes ... int qwe; ... Joe ...
    (comp.lang.c)
  • Re: pointer q
    ... Joe Smith wrote: ... qwe, qwr, writes ... int qwe; ...
    (comp.lang.c)