| | Character Arrays Clay Harmony
| | | Hi... I'm wondering if there's a way to extract an element from a character array the same way it would be done for an integer array. For example, when I have: char foo[]= {1, 2, 3, 4}; char bar(int i) { return foo[i]; } ... a zero is returned for (...) (25 years ago, 5-Nov-99, to lugnet.robotics.handyboard)
| | | | | | | | Re: Character Arrays Asher Kobin
| | | | | You're initializing foo[] wrong, it should be: char foo[] = { '1', '2', '3', '4' ); (...) the (...) (25 years ago, 5-Nov-99, to lugnet.robotics.handyboard)
| | | | | | |