Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <malloc.h>
  3.  
  4. int main()
  5. {
  6.     char *i;
  7.     int r = 0;
  8.     scanf ("%d", &r);
  9.     i = (char *) malloc (r);
  10.     scanf ("%s", i);
  11.     printf ("%s", i);
  12.     free ( i);
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement