Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void avar(int *i){
- *i = 5;
- }
- int main(int argc, char *argv[]){
- int i = 5;
- int *j = &i;
- *j = 5;
- int *k = (int *)malloc(sizeof(int));
- avar(k);
- printf("%d\n%x\n%d\n%x\n", i, j, *k, k);
- printf("Args:\n");
- int m;
- for (m=0; m<argc; m++){
- printf("%s\n", argv[m]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement