So if I have the code:
void main (void)
{
char s[] = "Programming is hard";
printf("%s", &s);
printf("%s", s);
return 0;
}
They both produce the same result. But &s should be the address of the character array right? so shouldnt' printf prints out the adress instead of what is stored in the address?
Thanks.
printf("%p", (void*) &s);@GabrielPellegrino