Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #define N 5
- char *func(char *str1[][N], char *str2[][N])
- {
- for (int i = 0; i < N; i++)
- {
- for (int j = 0; j < N; j++)
- {
- printf("%c", *(*(str1 + i) + j));
- }
- printf("\n");
- }
- return *str1;
- }
- void main()
- {
- char str1[][N] = {{"abcer"},
- {"rygqb"},
- {"iylfe"},
- {"optus"},
- {"vqdda"}};
- char str2[][N] = {{"qscbd"},
- {"tgvcs"},
- {"azzfp"},
- {"duufu"},
- {"wddda"}};
- char *res = func(str1, str2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement