Apparently Claude's C "compiler" is actually Python compiler since it allows returning a string from a function with a return type int. They should add this in the new C standard /s https://godbolt.org/z/of4nxj79c
Apparently Claude's C "compiler" is actually Python compiler since it allows returning a string from a function with a return type int. They should add this in the new C standard /s https://godbolt.org/z/of4nxj79c
You may think it's just implicitly converted from a pointer to an integer, but it allows returning anything such as a struct from a function with int return type.
@aiono duck typed C is the best C
@gabrielesvelto Your comment reminded me that the predecessor of C was in fact duck typed https://en.wikipedia.org/wiki/B_(programming_language)