Ok, I swear my book is wrong here.
The above is correct, as function putchar() takes integer 65 and prints A as its character equivelent. But then the book asks me to re-write the above as an exercise so putchar prints the value stored in integer variable amount. I was always told putchar cannot output integers, it can olnly read them in and then translate them to the character value. Is my book wrong here?
int main ( void )
int amount = 65;
printf("Value of amount %d", amount);
putchar( 65 ); /*putchar prints the character value of an entered integer*/