Quote:
Originally Posted by danielakkerman
Code:
char *x = "C-PROGRAMMING";
char *Prog = (char *)malloc(strlen(x));
You don't even need to cast return value of malloc in C.