pompeiifreckles

Untitled

Nov 25th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.         char *ptr;
  6.         printf("Enter the string\t");
  7.         scanf("%m[^\n]s", &ptr);
  8.         printf("%s\n", ptr);
  9.  
  10. }
Add Comment
Please, Sign In to add comment