[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] modifying arrays - adverb?



what's C99?

On Jun 6, 2006, at 1:52 AM, John Nowak wrote:


On Jun 6, 2006, at 3:33 AM, Jeremy Zuckerman wrote:

hi,
how could i get
c = [0, 12, 1, 11, 2, 10];

from
a = [0, 1, 2];
b = [12, 11, 10];

In pseudocode (okay, it's C99):

for(int i = 0; i < size_of_c; i++) {
	if(i % 2) c[i] = b[i / 2];
	else c[i] = a[i / 2];
}

- John
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users