By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 1,032 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 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


weaknessforcats
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,396
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.