can anyone please tell me the reason why this message
enter the word abcd
OUTPUT = Borland Intl.
when this code is executed
main()
{
char *abc;
abc = (char *) malloc (sizeof(char) * 30);
printf("enter the word"
scanf( "%[^\n]", abc);
printf("%s",*abc);
}
enter the word abcd
OUTPUT = Borland Intl.
when this code is executed
main()
{
char *abc;
abc = (char *) malloc (sizeof(char) * 30);
printf("enter the word"
scanf( "%[^\n]", abc);
printf("%s",*abc);
}