Name:
Anonymous
2010-07-17 18:35
printf("%s\n",word);
for(i=0;i<11;i++)
{
trslt[i]=result[i+3];
rsltlower[i]=tolower(trslt[i]);
}
printf("%s\n",word);
Can anyone tell my why the first printf statement prints the value of word, but the second prints only a newline?
Name:
Anonymous
2010-07-17 18:46
Because your not Christian. Accept the lord and saviour Jesus Christ into your life.
Name:
Anonymous
2010-07-17 18:53
Because your compiler takes offence at your indentation and lack of [code] tags.
(Do we really have to repeat that line on how to ask other people for debugging help in every single one of these threads, too?)
Name:
Anonymous
2010-07-17 18:53
One of either trslt or rsltlower arrays is not initialized correctly and the array writes overflow into the word buffer.
Name:
Anonymous
2010-07-17 19:12
>>4
that was it, thanks guys. Will use code tags in the future.
Name:
Anonymous
2010-07-17 19:44
>>5
Please don't post in the future.
Name:
Anonymous
2010-07-17 19:51
>>6
>Please don't make an attempt to learn anything in the future.
Name:
Anonymous
2010-07-17 19:55
>>7
Please learn to quote and try not to hear things other didn't say in the future.
Name:
Anonymous
2010-07-17 21:22
>>7
There actually is a difference between learning things and posting stupid questions in obnoxious ways.
Name:
Anonymous
2010-07-17 21:59
>>9
What is it like, wise master, not to have ever had to start from the beginning?
Name:
Anonymous
2010-07-17 23:44
>>10
It's covered in SICP. Check it out.