Accessing Individual rows from a multidimensional array passed to afunction

V

...vagrahb

I am having accessing individual rows from a multidimensional array
pass to a function as reference


CODE:

function Declaration

int Part_Buffer(char (*buffer)[_MAX_SIZE],int Low, int High)

Function call

pivot = Part_Buffer(buffer,0, high);




when I do a print of buffer[0] it prints all the contents of the
buffer but not the first row element.

How do I access the individual elements from each row in that buffer.


I need to pass the buffer as a reference as I need to do a quicksort
on the elements in the buffer

Could anyone let me know how I could do this.

Thanks.
 
V

Vidar Hasfjord

[...]
when I do a print of buffer[0] it prints all the contents of the
buffer but not the first row element.

Zero-terminate the strings (rows).

Regards,
Vidar Hasfjord
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top