我创建了一个程序,其中我注意到两件事
我的代码:
#include<stdio.h>
int main ()
{
char str[10]="PinkFloyd";
char *s;
char **s1;
s=&str[0];
s1=&s;
printf("the word is using pointer to pointer %s",*s1); //why if I used %c does not print the first character
printf("\n");
printf("the word is using s pointer %s",s); // why if I had replaced with *s does not print anything
return 0;
}
Run Code Online (Sandbox Code Playgroud)