#include <stdio.h> /* * String array and double pointer */ int main() { /* String array */ char *str_2d[] = { "abc" }; str_2d[0] = "123"; str_2d[1] = "789"; /* Double pointer point to pointer of first element in array */ char **str_arr = str_2d; printf("First element: %s\n", *str_2d); /* Move to next element */ // *str_2d = *(str_2d + 1); // printf("Second element: %s\n", *str_2d); /* Move to previous element - Not working*/ /*str_2d = *(str_2d - 1);*/ printf("First element from double pointer: %s\n", *str_arr); printf("First element from double pointer: %s\n", str_arr[0]); }