B
Bill Cunningham
glen herrmannsfeldt said:(snip)
I had a compiler that would do that around 1988. (As well as I
remember, both warn and then do the old way.) For some time,
I got used to putting in that extra space.
(My usual convention is not to put space around =, but to put
it around all the compound assignment operators.)
Along with the X'1A', it is plenty long ago enough now.
It wasn't the compiler it was the indent program. It mentioned = &. I
can't seem to remember how to redirect stderr now. And this code works. So I
don't know why people are telling me it doesn't. I think some people are
just playing around with me and lying and trying to confuse me. Well here it
is.
#include <stdio.h>
int main()
{
int a = 15;
int *p;
p = &a;
printf("%p\n", &p);
printf("%p\n", p);
printf("%d\n", *p);
}
The result.
0x7fff8a9bb7b0
0x7fff8a9bb7bc
15
And everytime this is run there is a new addresss used.
Bill