I'm attempting to turn some integer array elements into a C string. HEre is an example of what I'm doing:
int digits[] = {2,4,3,0};
char text[6];
for (int pos=0; pos<4; ++pos) {
text[pos]=digits[pos];
}
printf("%s",text);
Instead I see heart shapes or smiling faces, and I don't understand the reason.