if we use short then we can save memory.But eventhough if we use short it occupies 2 bytes of memory so how can we save memort?
Answered by Ancient Dragon 5,243 in a post from
Jump to Post
there is no guarentee that a short will occupy 2 bytes of memory. The only thing we can be sure of is that char <= short <= int <= long. Notice that on some os all could be the same size.
On operating systems where short is 2 bytes …
All 2 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Dave Sinkula 2,398 long time no c Team Colleague
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.