![]() |
pre and post increment
hi..can anyone explain to me?? i am very confused abt this two.. for example; iint m [] = { 3, 2, 5, 2 }; int k = 0; System.out.println("(a)" + m[ k++ ]; System.out.println("(a)" + m[ ++k ]; *i compiled..but i dun understand why is the result 3 and 5 respectively???
|
| All times are GMT -4. The time now is 12:29 AM. |
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.