Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Sac123
  • Content: Threads
  • Order by date
  1. Sac123

    Post increment in macro

    #define MAX(a,b) (a>b?a:b) void main(void) { int a = 3, b=4; printf("%d %d %d\n",a,b,MAX(a++,b++)); } I expected the answer for this as 4 5 4 but answer i got is 4 6 5 Can anyone explain me why is this so...

Part and Inventory Search

Back
Top