You can convert the string to array of integers, not integer.
i.e. if you have a string "ABC", you can convert the string to its euivalent ASCII array as {65,66,67}.
This you can do directtly as given below.
char *st = "ABC";
int ascii[3];
ascii[0] = st[0];
ascii[1] = st[1];
ascii[2] = st[2];
I think this answers your question.
Regards
Pradeep P
It is not how much we do,
but how much love we put in the doing.
-Mother Theresa
|