Not to be snarky, in programming there’s rarely (in situations like this) a reason to keep count. Computers are exceptionally good at counting integers so they’d just count individual client id’s (however they’ve implemented that system), not keeping toll on how many clients are in a group chat.
So one client, be it at position zero is a one client group. Add another client at position one and you have two clients and a two person group.
Wouldn’t max value for 8 bit (unsigned) integer be 255? Like the number has 256 distinct values, but that includes 0.
Right but having a group chat of size 0 isn’t very useful.
Not to be snarky, in programming there’s rarely (in situations like this) a reason to keep count. Computers are exceptionally good at counting integers so they’d just count individual client id’s (however they’ve implemented that system), not keeping toll on how many clients are in a group chat.
So one client, be it at position zero is a one client group. Add another client at position one and you have two clients and a two person group.
What would 0 represent then?
The first index
And programmers usually start counting at 0.
You’re thinking indexing, 0 is still 0 when counting.
Computers start counting at zero, (unless it’s python) so the first person in the group would be ID 0, the second person would be ID 1