I have the following code :
int *edges[500];
char arr[] = {'c','d'};
edges[0] = arr;
printf("%c - %c", edges[0][0],edges[0][1]);
What I want displayed is c - d but what is actually being displayed is c -
So as you can see above, the first element is being displayed but not the second one.
Why isn’t the second element of the array not being displayed ?
Since an
intand acharhave different sizes, you should trychar *edges[500]