this is one of the question from 295c
#include<stdio.h>
#include<string.h>
main()
{
char *a="kammo DJ";
const char *b="roomies!!";
char *c;
a=(char *)malloc(strlen(a) + strlen(b));
c=(char *)malloc(strlen(a) + strlen(b));
c=strcat(a,b);
printf("%s\n",a);
}
and the output is - roomies!! but why the output should be concatenation of kammo DJ + roomies!! also tell what is the value of c?