Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- char **string_array[] = {"digital", "analog", "tester", "smartphone", NULL};
- for (int i = 0; i < 3; i++) {
- printf("%sn",string_array[i]);
- }
- return 0;
- }
- char *string_array[] = {"digital", "analog", "tester", "smartphone", NULL};
- for(int i = 0; i < 4; i++) {
- for(int j = 0; j < strlen(string_array[i]); ++j)
- printf("-%c",string_array[i][j]);
- puts("");
- }
Add Comment
Please, Sign In to add comment