Hello, I have a strange problem or the problem is very obvious and I can't see it :) I'm kind of a new C programmer so the chance of the latter is more :)
Anyway, I have a structure like this:
- #define EN_COK_HECE 40
-
-
struct kel
-
{
-
char kelime[EN_COK_HECE];
-
char sesliHarfler[EN_COK_HECE];
-
int sesliHarfKonumlari[EN_COK_HECE];
-
};
And on my program I use a code like this:
- printf("%i ", (kelime->sesliHarfler)[2]);
-
printf("%i ", (kelime->sesliHarfler)[2]);
-
Yes, same line 2 times. But the strange thing is that they print a different output. The output is like "97 -112". And when I add the same line several times more it does not change (97 -112 -112 -112 -112...). So just the first statement changes the value of the character. But I just do printing, I don't do any assignments, so I cannot understand where the problem is.
I am using Windows platform with MinGW system. And the code above is plain C.