B
Barry Schwarz
Barry Schwarz said:Barry Schwarz wrote:
There are no pointer variables in your code. Go back and start again
from scratch while writing "Arrays and pointers are different objects"
1000 times.
This is something I know because its been drilled into me. But the thing
is I haven't yet caught onto the real meaning yet. For example I know of a
If you don't understand the meaning, how can you possibly claim to
know something? If you really knew arrays and pointers were
different, you would never attempt to assign a value to an array name
as you did in this code from your 24 Aug message:
char p[]="hello world\n";
p==NULL;
That's not an assignment, it's a comparison. The statement
p==NULL;
is perfectly legal, though it's utterly useless.
Absolutely true on both counts. Another reason why those of us with
bad eyes beg for judicial horizontal white space.
(I don't know whether it was *meant* to be an assignment.)
Since Bill responded yes, I claim clairvoyance and responded to his
intent if not his text.