The program is fetching me the right output but still i am getting a warning
#include<stdio.h>
#include<string.h>
int main()
{
char *p,*q;
p=(char *)malloc(25);
q=(char*) malloc(25);
strcpy(p,"hello" );
strcpy(q,"hi");
strcat(p,q);
printf("%s",p);
}
Warning
test7.c: In function ‘main’:
test7.c:6: warning: incompatible implicit declaration of built-in function ‘malloc’
wat exactly is the problem ?