In which memory are variables stored? C/C++ | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

In which memory are variables stored? C/C++

In C/C++, primitive types are on the stack, unless held via pointer to a mem-block allocated by the new operation. - clear up to here. But: 1) Where are simple arrays of the primitive types? ...without the allocation by the new operator. 2) Where are strings? ...as not really a primitive type.

3rd Jan 2021, 2:36 AM
Franta
0 Réponse