Write a program the outputs sizeof(<em>type)</em> to display the size of each type in bytes. Then multiply by 8 for bits.
For example sizeof(char) will probably output 1.
WaltP
Posting Sage w/ dash of thyme
10,492 posts since May 2006
Reputation Points: 3,348
Solved Threads: 943
Am very new to programming but what are these data types associated with, like
chars = letters such as a, b, c
strings = words such as boy, cat, jill
int = numbers such as 1 , 2, 3
double =?? does a double mean decimal numbers?
float = ?? does this mean larger decimal numbers?
srry am very new to this myself
orangejuice2005
Junior Poster in Training
78 posts since Jan 2008
Reputation Points: 10
Solved Threads: 0
Link .Scroll down to Fundamental data types.
Niek
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403