Question: can it be in programming language C, thanks 1. (20 pt) Implement a function char *get_digits (char *str) which dynamically creates a new string (ns)

can it be in programming language C, thanks
1. (20 pt) Implement a function char *get_digits (char *str) which dynamically creates a new string (ns) that contains only the digits from the given string str. For example: char *ns; ns-get_digits"(210) 458-7346") ns should be poiting to a dynamically created new string "2104587346" ns-get_digits ("abc 458 xyz 7346") ns should be pointing to a dynamically created newstring "4587346 char get_digits (char *str) you can use either pointer or array notation */ char *ns
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
