C Program To Read String With Spaces Using Scanf Function | PDF | C (Programming Language) | Pointer (Computer Programming)
![c - Scanning a string with spaces from a file while also scanning numbers before and after it in the same line - Stack Overflow c - Scanning a string with spaces from a file while also scanning numbers before and after it in the same line - Stack Overflow](https://i.stack.imgur.com/adLb2.png)
c - Scanning a string with spaces from a file while also scanning numbers before and after it in the same line - Stack Overflow
![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)