kiranpatil
Newbie level 3
Hi ,
I want to have an array of strings.
I want to write a function which will take two parameters namely
first one :- size of array.
Second one :- max size of each string.
I can pass these parameters and runtime i will have the array.
How to write such a fuction?
by that how to allocate memory dynamically in such scenario using malloc??
I want to have an array of strings.
I want to write a function which will take two parameters namely
first one :- size of array.
Second one :- max size of each string.
I can pass these parameters and runtime i will have the array.
How to write such a fuction?
by that how to allocate memory dynamically in such scenario using malloc??