What are the byte values of basic data types : char , int , long , long long, float, double.?(using sizeof() )?
Jonah_4
0
Newbie Poster
Recommended Answers
Jump to PostNeither C nor C++ defines specifics sizes for those data types. There are certain minimum requirements. A char is required to have at least 8 bits. Short integers require at least 16 bits, normal and long ints must be at least 32 bits and a long long integer must be …
All 2 Replies
rproffitt
2,514
"Nothing to see here."
Moderator
Husoski
60
Newbie Poster
rproffitt
commented:
You should get credit for doing this homework for them.
+15
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.