well what is wrong with this piece of code ?

#include <stdio.h>
main()
{

double input;
char mystring[50]="143.01";
printf ("%s \n",mystring);
input=atof(mystring);
printf("%f",input);

}

the last printf command is not printing the value 143.01

what is wrong over here ?

--------------------------------------------------------------------------------