this code doesnt work, as in it only asks the user for getchar once and putchar once. i tried putting it in two method and it didnt work either. also whether it be char or int it is the same. that leads me to another question. why is it allowed to store chars in ints. also if i put getchar in a while loop and make the condition t = eof, how does it know its the end of me typin something.
char t = getchar(); putchar(t); printf("\n"); int x = getchar(); putchar(x); printf("\n");