what is the size of static data member

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanamalik
    New Member
    • Mar 2017
    • 1

    what is the size of static data member

    what is the size of integer static data member
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    static just means the scope of visibility. It has nothing to do with size.

    Integers are always sizeof(int).

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      There is no general answer to your question. Different compilers may well have different values for sizeof(int).

      Comment

      Working...