main() 
{ 
    int x=20,y=35; 
    x=y++ + x++; 
    y= ++y + ++x; 
    printf(“%d%dn”,x,y); 
} 

what would be the output?
can some one explain it with associativity and operator precendence

The statements are undefined so the output is not guaranteed to be anything specific. Different compilers may produce different results.

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.