Path: chuka.playstation.co.uk!news From: "Jon Prestidge (Moose)" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Destruction Of Arrays.... Date: Sat, 25 Mar 2000 00:19:06 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 33 Message-ID: <8bh0kg$7291@chuka.playstation.co.uk> References: <38DBC707.49543F25@chilternmag.demon.co.uk> NNTP-Posting-Host: host213-1-75-198.btinternet.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 I'm not totally sure I've understood -- probably not knowing me (so sorry in advance for telling you what you already know!)... but why not just populate the array with the appropriate values using a 'for' loop when ever required, eg (if you want the same values as your example):- int array[20480], *int_ptr; for ( int_ptr = &array[0]; int_ptr < &array[9]; int_ptr++ ) { *int_ptr = 0; } for ( ; int_ptr < &array[20480]; int_ptr++ ) { *int_ptr = 1; } Also don't forget that you can set-up a pointer and use it just like it's an array, perhaps that may provide the extra flexability you need eg:- int array[20480], *false_array; false_array = &array[0]; test_value = false_array[22] + false_array[29]; // for example Jon