Code:main() { int i=4,j=7; j = j || i++ && printf("YOU CAN"); printf("%d %d", i, j); } Answer: 4 1
Actually && has highest priority than ||. But compiler first evaluates || of above program. How is it?
Code:main() { int i=4,j=7; j = j || i++ && printf("YOU CAN"); printf("%d %d", i, j); } Answer: 4 1
Actually && has highest priority than ||. But compiler first evaluates || of above program. How is it?