3 ms·
putc, getc and ungetc should do fine though, right? No need for indexes or pointers.
by rightbyte 2y ago
putc, getc and ungetc should do fine though, right? No need for indexes or pointers.
- jfengel 2y agoYes. This argument applies to RAM as the only storage, for which C99 does indeed have some fixed size. But the space for a stream is arbitrary. I suppose it depends on whether you consider those "part of the language". Which seems like a pretty arbitrary question, but then, we're making a pretty arbitrary point. We already know that real machines always have some finite limitation on memory and thus cannot be Turing machines.