Getting weird characters in Strings
I am currently having a problem with strings and pointers. I am reading in from a file to two different arrays.
The "DEF" goes into the first array and the "CONE" goes into the second array. When I test these out in main they print out correctly. But when I pass there reference to pointers in other functions I have problems with the first array. When I try a test print in another function, the pointer to the first array prints DEF then prints a few weird characters after it. They are extremely weird symbols. The strange thing is, when I do the same with other pointer to the second array it prints out fine in the other function. I am extremely puzzled to why this is happening. It anyone can help it would great.