#include<iostream.h>
#include<conio.h>
void main()
{
                char *name;
                clrscr();
                cout<<"Enter Your Name : ";
                cin>>name;
                cout<<"\nEntered Name Is : "<<name;
                cout<<"\nSize of String Pointer : "<<sizeof(name);
                getch();
}

121

Advertisements