Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variables (Diving into C++)
Message
 
À
05/03/2009 22:25:51
Information générale
Forum:
Visual C++
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01386073
Message ID:
01386135
Vues:
37
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform