coledot·10 ปีที่แล้ว·discussTwo C strings walk into a bar.The first one says, "Hello, bartender. I would like a beer."The second one says, "I would also like a beer.a9545hn1g!#$8uq34fg98^ZDs7tgSDSR("The bartender asks the first string, "What's up with your friend?"It replies, "Don't mind him, he's not null-terminated."---And a variant on the above:The first string says, "Hello, bartender. I would like a beer."The second string says, "I would also like a beer.a9545hn1g!#$8uq34fg98^ZDs7tgSDSR("The bartender replies "root@localhost #"
The first one says, "Hello, bartender. I would like a beer."
The second one says, "I would also like a beer.a9545hn1g!#$8uq34fg98^ZDs7tgSDSR("
The bartender asks the first string, "What's up with your friend?"
It replies, "Don't mind him, he's not null-terminated."
---
And a variant on the above:
The first string says, "Hello, bartender. I would like a beer."
The second string says, "I would also like a beer.a9545hn1g!#$8uq34fg98^ZDs7tgSDSR("
The bartender replies "root@localhost #"