hello today i was trying something with linked list to initialize a var in the 2nd field of the for loop using the , operator but i got into a forever loop i want to know if this is defined behaviour or not ? since 1st field only does stuff once and the 3rd field does it after loop runs
Code:#include <stdio.h>
int main(void)
{
int x=1;
int b;
for(; x<10 , b=x ;x++ )
printf("%d\n",x);
getchar();
return 0;
}