Hey everyone.
Suppose we have char pointer passed by a function.
In the function we're iterating the chars within this char pointer array.
If we catch that some char is digit we want to assign it to another char pointer, this way:
What's the problem with this approach?Code:if (isDigit(text[i]) {
char* digit = &(text[i] + '\0');
}
Thanks in advance.