print char* address C
#include <stdio.h>
int main() {
char str[] = "Hello, World!";
printf("Address of the string: %p\n", (void*)str);
return 0;
}
#include <stdio.h>
int main() {
char str[] = "Hello, World!";
printf("Address of the string: %p\n", (void*)str);
return 0;
}