what does c=sizeof (233L) mean?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psupriyag
    New Member
    • Jul 2013
    • 1

    #1

    what does c=sizeof (233L) mean?

    I know it will give 4bytes of memory space but what about 233?
    I am confused with that part.. can anyone please help me out wid this one??
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    233 is a symbolic constant. The code gives the size of 233 as a long int.

    Very odd. sizeof(long int) gives the same answer. Plus the 233 can't be used anywhere else in the program.

    Is this some textbook example on the size of symbolic constants?

    Comment

    Working...