I am trying to insert value directly to double pointer matrix as follows : <pre><code>int **matrix = {{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4}};
int vertices = 4;
matrix = malloc(vertices * sizeof (int *));
</code></pre>

<p>so when I print the matrix, it is displaying garbage values.</p>
