1. No. Every malloc/sys_malloc requires one free/sys_free. You'd have to take the loop approach.

2. This sets all the 500 array elements of Bwater[j] to the integer value 100.

Last edited by Uhrwerk; 02/05/13 20:01. Reason: The second statement was wrong. Sorry.

Always learn from history, to be sure you make the same mistakes again...