Name: Gushie
Status: Other
Age: 30s
Location: N/A
Country: N/A
Date: Around 2001
Question:
What does the expression:
(d == char *) 0
actually do?
Replies:
I am going to assume you are talking about the C language here. If not,
then ignore this answer.
This should cause a compiler error. The parenthesis are in the wrong place,
so when the compiler reads the char * it should give an error. The way it
is written, the char * cannot be resolved as a type declaration or a type
cast.
If it does not, you would have to check with the guys who wrote the compiler
to see what they are doing, and get them to fix it.
NEWTON is an electronic community for Science, Math, and Computer Science K-12 Educators, sponsored and operated by Argonne National Laboratory's Educational Programs, Andrew Skipor, Ph.D., Head of Educational Programs.