1st is right, n when you do pa++, it will jump by size of 1st one-D array(in case array is of more than one dimension), even in this case, it'll jump by the whole array size(6).
On 5 August 2011 23:20, Amol Sharma <[email protected]> wrote: > both are wrong.....run and see that warning will be displayed !! > -- > > > Amol Sharma > Third Year Student > Computer Science and Engineering > MNNIT Allahabad > > > > > On Fri, Aug 5, 2011 at 10:17 PM, pankaj kumar <[email protected]>wrote: > >> first one is right and second is wrong.because dp will store address of >> pointer and here you are storing address of int array. >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
