I asked ChatGPT for C code for an issue I've been struggling with for a while, and it obliged. However its solution contained an issue that I've also encountered, so I pointed this out. It agreed and gave me an improved solution, which turned out to be correct. Impressive!