Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define LENGHT 15
- char **test;
- char pepe[3][LENGHT] = {
- "esto es una",
- "prueba para",
- "ver si func"
- };
- void printArray(char prueba[][LENGHT],int size)
- {
- int i;
- for(i = 0; i < size; i++)
- {
- printf("%s\n", prueba[i]);
- }
- }
- void main (void)
- {
- printf("Direccionamos test a pepe para comprobar que funciona\n");
- printArray(pepe, 3);
- test = &pepe[0];
- printf("\nAhora imprimimos la de verdad\n");
- printArray(test, 3);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement