Write a program in C to assign a character variables to the pointer and to display the contents of the pointer.
#include <stdio.h> #include <conio.h> void main() {char *s,str[40]; printf("enter the text ...."); gets(str); s=str; printf("content of the pointer is : %s",s); getch(); }