I have been learning c recently and came across this problem. I understand that b=(a=10)=10 (correct me if my thought process is wrong please) but i can't understand why c=1, so it would be amazing if someone could explain it to me. Thanks
#include <stdio.h>
int main()
{
int a = 10;
int b=(a=10);
int c=(a==10);
printf("B %d\n",b);
printf("C %d\n",c);
}