Let Us Compile and Run The Above Program That Will Produce The Following Result
Let Us Compile and Run The Above Program That Will Produce The Following Result
h>
#include <stdlib.h>
int main () {
char *str;
strcpy(str, "tutorialspoint");
/* Reallocating memory */
strcat(str, ".com");
free(str);
return(0);
Let us compile and run the above program that will produce the following
result −
String = tutoria