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.
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).