I created a program in which I noticed two things
- I used the address of pointer to print the whole word and It works but when I replaced s with *s it did not work (why is this happened?) (I used address in printf not *s the content)
- When I used pointer to pointer to print the character I could not print anything (I mean when I replaced %s with %c
My code :
#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;
}
 
     
     
     
     
    