Topic: Problams with strong typing in C++ (quiz of the month..)


Author: ros@actcom.co.il (Beverley and Ofer)
Date: 1995/04/04
Raw View
c++ quiz of the month..
lets see you guys:
in C, the following code will compile & run with no problem:

/*a structure which holds a list of function pointers */
struct fncnlist {
int value;
char *name;
double (*fncptr)();
} sp[20];

double myfunc(int a,int b) {
return a*b;
}

main() {