Department of Energy Argonne National Laboratory Office of Science NEWTON's Homepage NEWTON's Homepage
NEWTON, Ask A Scientist!
NEWTON Home Page NEWTON Teachers Visit Our Archives Ask A Question How To Ask A Question Question of the Week Our Expert Scientists Volunteer at NEWTON! Frequently Asked Questions Referencing NEWTON About NEWTON About Ask A Scientist Education At Argonne (d == char *) 0
Name: Gushie
Status: Other
Age: 30s
Location: N/A
Country: N/A
Date: Around 2001

What does the expression:
(d == char *) 0
actually do?

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.

--Eric Tolman

Click here to return to the Computer Science Archives

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.

For assistance with NEWTON contact a System Operator (, or at Argonne's Educational Programs

Educational Programs
Building 360
9700 S. Cass Ave.
Argonne, Illinois
60439-4845, USA
Update: June 2012
Weclome To Newton

Argonne National Laboratory