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 gkittelson 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: *

  1. Sac123

    Post increment in macro

    Hi xwb, thanks a lot
  2. Sac123

    Post increment in macro

    but according to ur explaination it should print 4 5 4. can you plz elaborate why b is getting incremented twice
  3. 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