Guest User

Untitled

a guest
Feb 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. char **string_array[] = {"digital", "analog", "tester", "smartphone", NULL};
  7. for (int i = 0; i < 3; i++) {
  8. printf("%sn",string_array[i]);
  9. }
  10.  
  11. return 0;
  12. }
  13.  
  14. char *string_array[] = {"digital", "analog", "tester", "smartphone", NULL};
  15.  
  16. for(int i = 0; i < 4; i++) {
  17. for(int j = 0; j < strlen(string_array[i]); ++j)
  18. printf("-%c",string_array[i][j]);
  19. puts("");
  20. }
Add Comment
Please, Sign In to add comment