Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void test(char **str);
- int main(int argc, char *argv[])
- {
- char *str = "one";
- printf("1->%s\n", str);
- test(&str);
- printf("2->%s\n", str);
- return 0;
- }
- void test(char **str)
- {
- *str = "two";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement