The following code compiles fine. How come it core dumps when I run it?
It works when I remove the asterisk in front of the buffer variable on the 5th line. Shouldn't I always use the asterisk to reference the value the pointer points to?
Thanks,
Ed
---- code--------------------------
#include <stdio.h>
void report(char *buffer)
{
printf("Test: %s\n", *buffer);
}
int main(int argc, char *argv[])
{
char *Street = "123 Disney Way";
report(Street);
}