Predic the output of the following code snippet.
main()
{
char *ch1 = "Rajesh";
char *ch2;
ch2 = (char *)malloc (20);
memset (ch2.0.20);
while (*ch2++ = *ch1++)
printf("%s\n",ch2);
}
The answer is empty output or no output. I executed this on Linux terminal but it shows a few blank lines followed by the Prompt.
Can anyone please explain what this function is trying to do and why do we get a few blank l...