int k=i++ + i++ + ++i + i++;
int m=j++ + j++ + j++ - j++;
cout<<i;
cout<<m;
cout<<j;
cout<<k;

what is the precedence in linux compiler

The result of that program is compiler dependent whether on *nix or any other operating system.

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.