Message from C, C++ talks

July 2019

— Yea, need some fixes about last \0

— Yeah, u rm all spaces

— Adnd why it's that not working

— But in real project this is bad solution

— 

Okay... for the moment I'm right now practising to understand how to work with pointers and that stuff

— Just need to *str = 0 in the end

— All right I'll change the loop to fix the \0

— And that one?

— Fgets doesn't wait for my input

— Just closes

— He set 0, but probably lose real length of allocated memory, which \0 was indicated by

— Idk, think lots of errors

— 🤣🤣

— Can anyone recomment me some practising exercises to understand those errors and to practise more things like this?

Message permanent page

— If he removes spaces from string in the same string it's natural allocated space in the end will be lost.

Message permanent page