I have a question, whats the difference between (1) using atoi to convert a 'char number' (number used in a char variable) into a int variable , (2) and just using scanf to read the int directly instead of having to get it first as a char variable and then having to convert it to int variable? Example:
First part of program (both examples start with this):
printf("Program to calculate your IQ.
printf("Enter your age:");
printf("Enter your weight:");
printf("Enter your area code:");
printf("This computer estimates your IQ to be %f.
Now here are the 2 examples (the follow the first part of the program):
Hope you underestand what I am trying to say. Thanks!