Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. int crazy (char **out) {
  6. strcpy(*out, "hello");
  7. return 0;
  8. }
  9.  
  10. int main (int argc, char** argv) {
  11. char test[10];
  12. char *test2 = test;
  13. crazy(&test2);
  14. printf("out is: %s\n", test2);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement