Argument 2 - Pointer Error ?? Easy Fix??
So yet another, final question about the xemacs program I wrote:
I wrote this:
void ConvertTemp (void)
{
double celsiusTemperature;
/* Prompts the user to enter a celsius temperature for
conversion into fahrenheit temperature. */
scanf("Enter the celsius temperature : %f\n\n",
celsiusTemperature);
/* Displays the converted celsius temperature in
fahrenheit temperature. */
printf("%f celsius is %f fahrenheit\n",
celsiusTemperature,
CelsiusToFahrenheit(celsiusTemperature));
}
I got this error:
travel.c: In function `ConvertTemp':
travel.c:631: warning: format argument is not a pointer (arg 2)
Why?
Someone got a fix for this?
Thanks,
Mistro116
|