I need to be able to turn this char* array[SIZE] into a char* example. How can i do this? My problem is that i need to be able to manage the contents of array separately in a pointer like fashion For example if i have:
array[0] = "dog"
array[1] = "cat"
array[2] = "one"
i want to be able to access each one of those elements by incrementing the value of a pointer like this
example = "dog"
example++ = "cat"
example++ = "one"
thanks in advance!!
My main problem is that i need to have all of these values pointed by a pointer, such that when i print my pointer ill have something like this:
printf("example: %s\n", example);
output: example: dog cat one