G Guest Mar 2, 2006 #1 hi, how would i get the memory address of a said pointer in my program? thanks
B Bruno van Dooren Mar 2, 2006 #2 hi, how would i get the memory address of a said pointer in my program? thanks -- Click to expand... to get the address the pointer is pointing to: char ptr[] = "test"; printf("address = %p", ptr); to get it as a value: size_t address = (size_t)ptr; -- Kind regards, Bruno. (e-mail address removed) Remove only "_nos_pam"
hi, how would i get the memory address of a said pointer in my program? thanks -- Click to expand... to get the address the pointer is pointing to: char ptr[] = "test"; printf("address = %p", ptr); to get it as a value: size_t address = (size_t)ptr; -- Kind regards, Bruno. (e-mail address removed) Remove only "_nos_pam"
K Kevin Frey Mar 2, 2006 #3 To get any type of useful answer you are going to have to elaborate on what you mean.