Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. int main () {
  6.  
  7.     char *code = malloc (2048);
  8.  
  9.     scanf ("%s", code);
  10.  
  11.     code = realloc (code, strlen (code));
  12.  
  13.     printf ("%s\n", &code[0]);
  14.  
  15.     return 0;
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement