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
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
please explain me the size of int ,float.,char,double,and pointers in 16 and 32 bit
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
jeyshree
New Member
Join Date:
Jul 2010
Posts:
75
#1
please explain me the size of int ,float.,char,double,and pointers in 16 and 32 bit
Jul 4 '10, 04:16 AM
please explain me the size of int ,float.,char,do uble,and pointers in 16 and 32 bit
santechselva
New Member
Join Date:
May 2010
Posts:
8
#2
Jul 4 '10, 10:23 AM
Originally posted by
jeyshree
please explain me the size of int ,float.,char,do uble,and pointers in 16 and 32 bit processors
for 32 bit system
int 4 bytes
float 4 bytes
char 1 byte
double 8 bytes
short int 2 bytes
long int 4 bytes
Comment
Post
Cancel
Banfa
Recognized Expert
Expert
Join Date:
Feb 2006
Posts:
9067
#3
Jul 4 '10, 10:43 AM
The size of any variable or type is the number of bytes it takes in memory.
Apart from char, which always has a size of 1 by definition the size of all types is platform dependent.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment