legality of assignment of function to a void *.
    Mike Lijewski 
    lijewski at theory.tn.cornell.edu
       
    Tue Nov 13 08:15:11 AEST 1990
    
    
  
Is a standard conforming compiler required to issue an error
diagnostic for the following code.  Thanks.
#include <stdio.h>
double f(double x) { return x * x; }
int main(void)
{
   void *ptr = f;
   return 0;
}
-- 
Mike Lijewski  (H)607/272-0238 (W)607/254-8686
Cornell National Supercomputer Facility
ARPA: lijewski at theory.tn.cornell.edu  BITNET: mjlx at cornellf.bitnet
SMAIL:  25 Renwick Heights Road, Ithaca, NY  14850
    
    
More information about the Comp.std.c
mailing list