Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code in C Write a function named find_digits that finds the digits ('O' to '9') in the string parameter str1 and store them in str2.

Code in C

image text in transcribed

Write a function named find_digits that finds the digits ('O' to '9') in the string parameter str1 and store them in str2. For example, if str 1 contains "Mary has 10 strawberries. Dan has 15 strawberries", then str2 will be "1015". Character library functions such as isdigit() are not allowed. Use pointers and pointer arithmetic to process strings. In other words, eliminate the loop index variables and all use of the [] operator in the functions. void find_digits(char *str 1, char *str2){ //add your code }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

LO3 Define the difference between job satisfaction and engagement.

Answered: 1 week ago

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago