C is Turing complete
2024-08-02 14:10https://dotat.at/@/2024-08-02-turing-c.html
Yesterday there was some discussion on the Orange Site about whether or not C is Turing complete. The consensus in the StackOverflow question is,
no, because the C abstract machine is a (large) finite state machine,
or maybe yes, if you believe that unaddressable local variables can exist outside the finite address space.
My answer is definitely yes, if you include the standard IO library.
And using IO is much closer to Turing's original model of a finite state machine working on unbounded storage.
( Read more... )