main()
{
int a=0,b=0;
a=(b=75)+9;
printf("/n%d,%d",a,b);
}

what is your question??

here, you are assigning 75 to b. Then, you are adding 9 to 75(b ,actually) and assigning this value to a. So , as the result of it, you have a= 84 and b as 75 which will be printed in the 5th line in the code snippet. hope it helps. thanks.

a=(b=75)+9;//b=75
a=b+9;//a=75+9

so, a=84 and b=75

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.