• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

File Size

I have been reading limits on file size and folders in a volume which is 2^32-1=4,294,967,295.  What exactly is this '-1' for?  I could not find an answer to this.  
1 Solution
Gary CaseRetiredCommented:
Consider a 2-bit word.   The possible values are:

00, 01, 10, 11  or (in decimal 0, 1, 2, and 3).  So the largest value that can be represented is (2^2 - 1).

Similarly, the largest value that can be represented in a 32-bit word is (2^32 - 1).   The file size field (which contains the size of the file in bytes) for FAT32 files is maintained in a 32-bit word ==> so the largest possible size is (2^32-1) bytes.
HiganteAuthor Commented:
Very well explained.  Thank you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now