cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Storage binding for certain variables
Storage binding for certain variables
Jan 19, 2013 at 2:14pm UTC
deathmoon
(43)
let say I have a main function, inside the main function I have
1
2
3
const
int
row = 5;
const
static
int
modulo = 100;
int
a2[row] = {0};
const int and const static int is a static variable or stack dynamic variable?
a2 is a static variable or stack dynamic variable?
and why for the questions?
Last edited on
Jan 19, 2013 at 2:15pm UTC
Jan 19, 2013 at 2:45pm UTC
jlb
(4973)
You may want to start by reading this link:
http://en.cppreference.com/w/cpp/language/storage_duration
Topic archived. No new replies allowed.