Timeline for why is my char array empty
Current License: CC BY-SA 4.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 3, 2022 at 8:27 | comment | added | Edgar Bonet |
In the OP's code, get() and put() are being passed actual arrays, not pointers. As the arrays are being passed by reference, they do not decay to pointers.
|
|
| Mar 2, 2022 at 10:53 | history | answered | Majenko | CC BY-SA 4.0 |