printing addresses of argv members

This commit is contained in:
Dan Buch 2011-09-19 22:49:41 -04:00
parent 971363ba89
commit 9dfa986b5d

2
ex15.c
View File

@ -53,7 +53,7 @@ int main(int argc, char *argv[])
char **arg = argv;
for(i = 0; i < argc; i++) {
printf("argument %d is '%s'\n", i, *arg);
printf("argument %d is '%s' (address = %p)\n", i, *arg, arg);
arg++;
}