Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variables (Diving into C++)
Message
 
To
05/03/2009 22:25:51
General information
Forum:
Visual C++
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01386073
Message ID:
01386135
Views:
38
>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.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform