Because you are trying to print a float value as an integer. (The actual result you get will be system dependant, you can't rely on it being zero either - my compiler gives me "12"!)
Try:
printf("value of f is : %f\n",f);
Or
printf("value of f is : %d\n",(int)f);