Answers for "how to print address of char pointer in c"

C
1

how to print the address of a pointer in c

int a = 42;

printf("%p\n", (void *) &a);
Posted by: Guest on July-03-2020
0

print char* address C

printf("address of str1 in memory : %p\n", &str1);
Posted by: Guest on June-03-2021

Code answers related to "how to print address of char pointer in c"

Code answers related to "C"

Browse Popular Code Answers by Language