Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void fonc(char * result) {
- char* temp = (char*) calloc(512,sizeof(char)); // Define buffer for query
- temp[0]='A';
- result = temp;
- printf("%s %x\n", result, &result);
- printf("%s %x\n", temp, &temp);
- }
- void main() {
- char * toto;
- fonc(toto);
- printf("%s %x\n", toto, &toto);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement