Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C
what does c=sizeof (233L) mean?
what does c=sizeof (233L) mean?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
psupriyag
New Member
Join Date:
Jul 2013
Posts:
1
#1
what does c=sizeof (233L) mean?
Jul 5 '13, 02:20 PM
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
Join Date:
Mar 2007
Posts:
9214
#2
Jul 5 '13, 03:47 PM
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
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment