>What is the limit to the number of variables that may be used in C++ ?
>Is there a limit at all?
If you're talking local variables then you're limited by the stack size. Variables in general, not really. However, if you're asking about the # of variables you're probably asking the wrong question ;-) In almost every case you're going to be better off using arrays of types and indexing into them instead of individual variables. Then you're mostly limited by memory.