Code for Program to assign the pointer variable to another pointer and display the contents of both pointer variables in C Programming
#include <stdio.h>
#include <conio.h>
void main()
{
char *s, **t, str[40];
printf(" enter the text...");
gets(str);
s=str;
t=s;
printf("content of both the pointer are: %s & %s",s,t);
getch();
}