Possible Duplicate:
Can a local variable’s memory be accessed outside its scope?
double* weird( double a, double b )
{ 
    double c;
    c = pow( a + b, 0.5 );
    return &c;
}
It might be trivial for most of you guys, but I don't see what could go wrong here.
 
     
     
     
    