22. Predict the output or error(s) of the following c code

1
2
3
4
5
6
7
 main()
{
	char *p="hai friends",*p1;
	p1=p;
	while(*p!='\0') ++*p++;
	printf("%s   %s",p,p1);
}

Click here to view the answer

Leave a Reply