Re: Question in C



On Fri, 20 Feb 2004 17:27:18 -0000
"Thomas Keaney" <se40319 cs may ie> wrote:

Hi,
How would I change a char to an int. I have the value "34" as a
character. I want to change this to an int (34). Cheers

char is in fact an (smaller) int. So you can just assign the char value to
an int - no problem.

John


Regards,
Thomas Keaney
4 CSSE




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]