I was just doing some small C problems and came up with this,
#include <stdio.h>
void main()
{
int k = (3, 4);
printf("%d\n", k);
}
Could someone explain where is the syntax, (3, 4)
used for ? Since when does it come from ? I think the problem should be asked before but I don't know how to google for it.
BTW, the above is my simplified version. The origin code is below
#include <stdio.h>
void main()
{
int a = -5;
int k = (a++, ++a);
printf("%d\n", k);
}