Advertisement
Guest User

Untitled

a guest
Dec 6th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. void foo(int c)
  5. {
  6.     char alpha[] = "abcdefghijklmnopqrstuvwxyz";
  7.     char two[0];
  8.  
  9.     memcpy (two, alpha, c);
  10.  
  11.     two[10] = '\0';
  12.  
  13.     printf("\n%s\n", two);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement