Maybe this question is not related to C language at all, maybe is. I wonder why in excel number of columns is 255 and maximum number of characters for naming file is 255. Is there any connection?
Thanks.
This is a discussion on 255 within the Tech Board forums, part of the Community Boards category; Maybe this question is not related to C language at all, maybe is. I wonder why in excel number of ...
Maybe this question is not related to C language at all, maybe is. I wonder why in excel number of columns is 255 and maximum number of characters for naming file is 255. Is there any connection?
Thanks.
If you have an 8 bit number, it can count up to 255. I'm guessing whoever programmed excel used an 8 bit variable to store the number of columns. As for the character limit, the programmers probably created the buffer which stores the file name as a size of MAX_PATH. On some windows implementations, this is equal to 256 (255 characters, plus one null terminator).