Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Meet and Greet (http://www.go4expert.com/community/meet-and-greet/)
-   -   what is wrong with this code (http://www.go4expert.com/community/wrong-code-t8447/)

harikrishna_sit 24Jan2008 16:52

what is wrong with this code
 
main()
{
char *p="hai friends",*p1;
p1=p;
while(*p!='\0')
++*p++;
printf("%s %s",p,p1);
}


All times are GMT +5.5. The time now is 17:00.