| Can I use # (indirection) like in TI-Basic?

Previous | The C Language | Next

Q: | I wonder how I can simulate the indirection operator (`'#'`) from TI-Basic in C programs...
A: | Nothing equivalent to indirection (`'#'`) exists in any compiling language (like C), since the variable names do not appear in the compiled program. You need to make up your mind to avoid this operator. For indirect references to variables in C, you can use pointers. However, usually you can re-express the code using multiple `if`-`else` statements or arrays. Don't be afraid, C will process it 1000 times faster than TI-Basic processes indirections.