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
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
sizeof(char*)
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
arnaudk
Contributor
Join Date:
Sep 2007
Posts:
425
#1
sizeof(char*)
May 15 '08, 04:00 PM
Why is sizeof(char*) = 4? I would have expected 1... Is it because a pointer is stored as an int ?
pootle
New Member
Join Date:
Apr 2008
Posts:
68
#2
May 15 '08, 04:29 PM
It is the size in bytes - pointers are 32 bits on 32 bit architectures.
Comment
Post
Cancel
dtimes6
New Member
Join Date:
Oct 2006
Posts:
73
#3
May 23 '08, 07:05 AM
so what is you sizeof(int) ?
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment