Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int crazy (char **out) {
- strcpy(*out, "hello");
- return 0;
- }
- int main (int argc, char** argv) {
- char test[10];
- char *test2 = test;
- crazy(&test2);
- printf("out is: %s\n", test2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement