
please wait
Write a function char* strdup(const char*), that copies a C - style string into memory it allocates on the free store. Do not use any standard library functions |
|
|
|
|
|
|
const char *
as a special case. cout
just to check out if the output is actually correct so i don't think it counts :Dcout << p
if p is an array but you have to use cout << *p
if p points to a single char. Whats the idea behind this?
Whats the idea behind this? |