0

How to allocate a double pointer from a function argument in C? [SOLVED]

I neeed to dynamically allocate a global double pointer char variable from inside a function, which will be passed by value ,in such a way that it can be used like an array of strings. Where each string has the size of 260 bytes. I am tagging my code here... But something is seriously problematic in my code but I can not understand where the problem is... So can somebody help me out to find my problem and explain what is possibly going wrong ? And please leave an example code snippet for better understandings https://code.sololearn.com/cLmIWncs0DKT/?ref=app

16th Sep 2022, 11:26 AM
CoderBittu
CoderBittu - avatar
1 Réponse
+ 1
You could try returning the double pointer. https://code.sololearn.com/cbGX30v6gInZ/?ref=app
16th Sep 2022, 11:44 AM
Slick
Slick - avatar