By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,054 Members | 1,299 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,054 IT Pros & Developers. It's quick & easy.

what is the size of static data member

P: 1
what is the size of integer static data member
Mar 29 '17 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 9,197
static just means the scope of visibility. It has nothing to do with size.

Integers are always sizeof(int).
Mar 29 '17 #2

Expert 100+
P: 2,404
There is no general answer to your question. Different compilers may well have different values for sizeof(int).
Mar 29 '17 #3

Post your reply

Sign in to post your reply or Sign up for a free account.