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)

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!