Create a c program accepts a month and day


Discuss the below:

Q: Write a C program that accepts a month and day (for example, June 14) from the keyboard as input. Store this information in a string called date. Call a function named separate() passing in the string date and the addresses of a tempmonth array and tempday integer. The separate() function should extract the two values from the passed string and store them into the passed variable addresses. Back in main, print the data in tempmonth and tempday.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a c program accepts a month and day
Reference No:- TGS01931770

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)