Storage binding for certain variables

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
You may want to start by reading this link: http://en.cppreference.com/w/cpp/language/storage_duration

Topic archived. No new replies allowed.