I am following the "C Primer Plus" and encounter the following codes:
//strptr.c -- strings are pointers
#include <stdio.h>
int main(void)
{
printf("%s, %p, %c\n", "We", "are", *"space farers");
return 0;
}
Run it and come by:
./a.out
We, 0x1066e4fa1, s
Reference to the *"space farers"
, the book explains that:
*"space farers" should produce the value to which the address points, which should be the first character of the string "space farers".
Does it mean that *"space farers"
is an address?
There's no pointers declared in the head?