Hi,
I tried to do like below, but its not printing the expected one. Plz suggest to proceed further.
OUTPUT:
Enter the string: abc
Entered string is : NULL
void main()
{
char *a;
printf("Enter the string: ");
scanf("%s",&a);
printf("\nEntered string is :%s", a);
getch();
}