Re: Traversing an array spirally
On Sat, 2 Feb 2008 10:07:27 -0600, santosh wrote
(in article <fo23pf$3ea$1@registered.motzarella.org>):
> Praveen wrote:
>
>> Hi,
>>
>> I would like to know how to traverse an array spirally?
>> i.e if I have an array as follows
>>
>> 1 2 3 4
>> 5 6 7 8
>> 9 10 11 12
>>
>> I want the output to be 1 2 3 4 8 12 11 10 9 5 6 7.
>>
>> Please
>
> In addition to the other responses I also recommend that you do a search
> of Google Groups' archive of comp.lang.c. This is a fairly regular
> homework problem and there have been many good answers given over the
> years.
>
Yes, by all means, make sure that he doesn't accidentally learn
anything during this or any other course. We need more college grads
that don't understand the material on their diploma.
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw
|