16 Mar 2004 cerquide   » (Journeyer)

Today I have been learning C with Alfonso Maestre. We have been trying to understand pointers to functions. It is funny that

int x(int z) {return 0;};

int main() {

if (x == ****************x) {

printf ("I am a pointer to myself\n");

}

}

compiles and says a function is a pointer to itself!!! Isn't it surprising?

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!