-
Array question
hey guys just wondering if when you put a word in a character array is this still classed as dealing with a character string?
for example
if i had a char array which was char example [100];
and it contained "hello" would hello be classed as a string even though its in a char array?
thanks.
-
-
Not always, if you are attempting to make an actually array of characters and not a string. then you need to leave off a null termination character "\0" otherwise it will be treated as a string.
-
What didn't you understand about the answers you got in the previous thread?
http://cboard.cprogramming.com/showthread.php?t=78594