This is my first here - i love this website. I have been teaching myself C and have a very beginner question that is probably easily answerable. Why does the following program give me garbage for the "long" type value? Will any other data type besides "float" work? Why not? Thanks in advance.
printf("Please enter how many years old you are!\n");
printf("According to float, you are %f seconds old. According to long, you are %f seconds old.\n", floatsecondsold, longsecondsold);