Question
Which of the following data types can store the value 0 using the least amount of memory?a. shortb. longc. intd. byte
Step 1
- A `byte` typically uses 1 byte (8 bits) of memory. - A `short` typically uses 2 bytes (16 bits) of memory. - An `int` typically uses 4 bytes (32 bits) of memory. - A `long` typically uses 8 bytes (64 bits) of memory. Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD