Feedback void == void 

Forum: Com Sci 221, U Chicago, Autumn 2001, Old Classwork
Date: 2001, Oct 25
From: Ben Wolfson wolfson

I tried compiling the program
void f() { }
void g() { }
int main()
{
   if(f() == g()) printf("ok\n");
   return 0;
}
and I got the error void value not ignored as it ought to be, so it looks as if the elements of the void type can't be used at all.


Messages

to: "void == void"