0
What is the method to avoid return random value in the end of the character array ?
l have been experienced the '\0' and it dosn't work.
6 odpowiedzi
+ 1
if i run your code, i get the output:"i use sololearnt"
the only error i saw was, that you wrote srtlen instead of strlen in the line:
t[srtlen(t)+1]='\0';
+ 1
works for me, but your srtlen should be strlen
0
i didnt understand
0
thanks