Sorry I did'nt put all the information necessay in the first email. Below is the basics of what I am trying to do. I am just trying to form an array of pointers to six two-dimensional integer arrays. Afterwards I want to retrieve them and print them out. Since my last email I have tried a few other things but I am still having problems. Here's the code.<br><br><br>#include <stdio.h> <br>#include <stdlib.h><br>#include <string.h><br><br>void displacement_from_source(int X, int u_position[4][2],int* rx_displacement[6]);<br>void print_out_arrays(int X, int* rx_displacement[6]);<br><br>// Main Program<br>void main ()<br>{<br><br>/* global variables */<br><br>int i,j;<br>int u_position[4][2]={5,6,7,8,9,10,11,12};<br>int X;<br>int* rx_displacement[6]; //array of pointers<br>int*tx; <br>int temp_array[4][2];<br><br>for (X=0; X<6; X++) // go through six times to form the six integer arrays<br>{<br> displacement_from_source(X,u_position,rx_displacement);<br>}<br><br>for (X=0; X<6; X++) //go through six times to print arrays<br>{<br>tx=rx_displacement[X]; //assign pointer tx the first interarray address<br>memcpy(temp_array,tx, 8*sizeof(int)); //assign this address to temp_array<br><br> for (i=0;i<4;i++)<br> {<br> for (j=0;j<2;j++)<br> { <br> printf("%d\n", temp_array<i>[j]);<br><br> }<br> }<br>}<br><br>}<br><br>void displacement_from_source(int X, int u_position[4][2],int* rx_displacement[6])<br>{<br> <br>int i,j;<br><br>int rx_array[4][2];<br>int rx_temp[4][2];<br>int* rx;<br>int* tx;<br> <br>memcpy(rx,rx_temp, 8*sizeof(int)); //assign the address of rx_temp to the pointer rx<br>rx_displacement[X]=rx; //assign the address of rx to the array of pointer's Xth<br> for (i=0;i<4;i++)<br> {<br> for (j=0;j<2;j++)<br> {<br> rx_temp<i>[j]=u_position<i>[j]; <br> }<br> }<br>}<br><br><br>