circular shift array
- From: "Bint" <bint@xxxxxxxx>
- Date: Mon, 30 Jul 2007 22:04:42 -0500
Hi,
What is a simple way to shift the elements in an array, circularly? Is
there a way to do it so that you don't need a separate storage array?
IE I want to shift array A{1,2,3,4,5,6,7,8} by 3 to the right. The result
would be B{6,7,8,1,2,3,4,5)
Thanks!
B
.
- Follow-Ups:
- Re: circular shift array
- From: Richard Heathfield
- Re: circular shift array
- From: Barry Schwarz
- Re: circular shift array
- Prev by Date: Re: Uninitialized auto variables
- Next by Date: circular shift array
- Previous by thread: printf
- Next by thread: Re: circular shift array
- Index(es):