![Still confused as to how malloc and scanf work. I have allocated memory enough for 10 chars in this but it printf doesn't print anything after the first space. 2nd run; I Still confused as to how malloc and scanf work. I have allocated memory enough for 10 chars in this but it printf doesn't print anything after the first space. 2nd run; I](https://i.redd.it/e2h1kbdbmos51.png)
Still confused as to how malloc and scanf work. I have allocated memory enough for 10 chars in this but it printf doesn't print anything after the first space. 2nd run; I
![while using fgets and printf in C, it appears "00“ in the screen, do you know why and where "00" comes from? - Stack Overflow while using fgets and printf in C, it appears "00“ in the screen, do you know why and where "00" comes from? - Stack Overflow](https://i.stack.imgur.com/3Ni1e.png)
while using fgets and printf in C, it appears "00“ in the screen, do you know why and where "00" comes from? - Stack Overflow
![File stream is opened but nothing is printed to console. Program doesn't seem to "finish" - Stack Overflow File stream is opened but nothing is printed to console. Program doesn't seem to "finish" - Stack Overflow](https://i.stack.imgur.com/1KBVY.png)