C program to demonstrate Pointer to string:
void main()
{
int a;
char str[]="hello how are you?",*ptr_str;
ptr_str=&str[0];
a=strlen(str);
for(int i=0; i { printf("%c",*ptr_str); ptr_str++; } } Output:
printf("%c",*ptr_str);
ptr_str++;
}
Output: