Advertisement
Guest User

hoy

a guest
Oct 23rd, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. int main(int argc, char** argv, char** surroundings) {
  5.     int counter = 0;
  6.     int N = 0;
  7.  
  8.     N = atoi(argv[1]);
  9.  
  10.     for ( ; *surroundings != NULL && counter < N; counter++) {
  11.         printf("%s\n", *surroundings);
  12.         surroundings++;
  13.     }
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement