strange variable init

hi
i've found this type of initialization in a source of another person but i cant understand the way of an init of the type:

var1 = 2;
tot = var1,var2;

what's the behavior of this?
it does tot = var1, var2 is unused.
However if line looks like int tot = var1, var2; It will declare integer variable tot with value equal to var1 and uninitializated integer variable var2
Topic archived. No new replies allowed.