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

Monday, September 5th, 2011
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

Avatar of Peter Vegas

Author Name :
Peter Vegas

Total : 0 Comment


Leave a Reply

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup

Email: