[algogeeks] manually initialise indexing of an array

2011-03-10 Thread amit
Indexing of an array starts with '0' by default. can we manually start with 1 or any other number say a negative one? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscr

Re: [algogeeks] manually initialise indexing of an array

2011-03-10 Thread amit kumar
thanx launde. its working. On Thu, Mar 10, 2011 at 4:00 PM, Ankur Khurana wrote: > may be this will do > int arr[21]; > int *a; > a=arr+10; > now a can vary from a[-10] to a[10] > I have doubts but will this work ? > > > > On Thu, Mar 10, 2011 at 3:31 PM, amit wrote: > >> Indexing of an array st

Re: [algogeeks] manually initialise indexing of an array

2011-03-10 Thread Ankur Khurana
may be this will do int arr[21]; int *a; a=arr+10; now a can vary from a[-10] to a[10] I have doubts but will this work ? On Thu, Mar 10, 2011 at 3:31 PM, amit wrote: > Indexing of an array starts with '0' by default. can we manually start > with 1 or any other number say a negative one? > > --