Re: problem passing pointer array



On Jun 30, 6:33 pm, pereges <Brol...@xxxxxxxxx> wrote:
Hi, can some one please tell me why this program is not able to
function properly. I have a array a and i am trying to create a
pointer array b which points to elements less than 40 in a.

#include <stdio.h>
#include <math.h>
#include <stdlib.h>

void create_ptr_list(int *a, int ***b, int n, int *size_ptr)
Change int ***b to int **b.
Change the 'int **b' in your main() to int *b.
.