answersLogoWhite

0

char* duplicated strdup("Hello World");

duplicated will now contain the address to dynamically allocated memory of a C-style string that contains "Hello World" and a null at the end. Be sure to free duplicated when you're done with it or you'll have a memory leak.

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions