main()
{
char *p,*q;
strcpy(p,"amazon");
strcpy(q,"hyd");
strcat(p,q);
printf("%s"p);
}

this snippet also execute to result with no errors.
but it will have some problem with the internal memory, that it may
overwrite the existing space.

so, the given code doesn't have any error in it as the memory has been
allocated.
the extra space allocated may be the prob with amazon. lol

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to