Hmm, I don't get the question. >> how to dynamically allocate memory for int *a[3]; ? What do you mean by allocating memory for int *a[3]; Can you explain in some more details what exactly you want to do
On Jul 27, 8:39 pm, Kamakshii Aggarwal <[email protected]> wrote: > i am not getting any of the ways..can u explain? > > On Wed, Jul 27, 2011 at 9:06 PM, Abhinav Arora > <[email protected]>wrote: > > > > > > > I believe the method written is incorrect, it didnt work for me.... > > i guess this is the right way...worked for me: > > > int **p; > > p=malloc(3*sizeof(int *)); > > > -- > > You received this message because you are subscribed to the Google Groups > > "Algorithm Geeks" group. > > To view this discussion on the web visit > >https://groups.google.com/d/msg/algogeeks/-/ATGevOaqMbUJ. > > > 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. > > -- > Regards, > Kamakshi > [email protected] -- 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.
