0

Can a program be made such that the system declares a new variable?

11th Dec 2016, 9:52 AM
Adarsh Basumata
Adarsh Basumata - avatar
3 Answers
+ 1
Yes, with dynamic memory (new and delete) the program can handle memory as needed at run-time.
11th Dec 2016, 10:12 AM
Mattias Eriksson
Mattias Eriksson - avatar
+ 1
C++ is linked/compiled (not interpreted) which negates the question in the strictest sense. Mattias is correct from the dynamic sense. If you still want to know how to do this as if the linker/compiler knew about the variable (you'll be certain you do, not just wondering - and you'll understand the security architectures that seek to block you) you might have better luck at StackExchange. Even if you have an excellent reason, be prepared for lots of pushback for people who won't agree this is necessary.
11th Dec 2016, 1:18 PM
Kirk Schafer
Kirk Schafer - avatar
0
u meam?
11th Dec 2016, 9:53 AM
manish rawat
manish rawat - avatar