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

1
2
3
4
5
6
7
8
9
10
#include "stdio.h"
main()
{
	char s[]={'a','b','c','\n','c','\0'};
	char *p,*str,*str1;
	p=&s[3];
	str=p;
	str1=s;
	printf("%d",++*p + ++*str1-32);
}

Click here to view the answer

Leave a Reply