Im learning from start C basic.And i dont understand character wide.When i change it nothing visual happens,so i dont know what is purpose of this
I was researching and at first i discovered that its not string length but character datatype,but more info i wasnt able to find
main()
{
float farh, celsium ;
int lower, upper, step;
lower = 0;
upper = 300;
step = 20;
farh = lower;
while(farh <= upper) {
celsium = (5.0/9.0) * (farh - 32.0);
printf( "%5.2f %5.2f\n",farh, celsium);
farh = farh + step;
}
}
output is temperature in celsuim and fahrenheit (0.000000 -17.777779)
in the code above
%5.2f
represent each argument to be alerted with character wide at least 5 and with 2 numbers after decimal point. But what changes if i write 2, 6 or other number instead of 5?