Question: I need some help I figured out how to bubble sort the array with recursive but my problem remains more simple. How to I read

I need some help I figured out how to bubble sort theI need some help I figured out how to bubble sort the array with recursive but my problem remains more simple. How to I read in an array like 1 2 3 4 5 with spaces in between convert to integer and give me the count of how many numbers were just inserted. I need to figure out number count since without know how many numbers were entered before the enter key is entered I can't effectly use my bubble sort as I need to know how many numbers have been entered maybe 3 were entered maybe 8 this time how do I count with a scanf or gets and put it into an array without the spaces being left behind.

Write a recursive function to solve the problem 6 in homework 1: Take two arrays, A[] and B[], each with up to 10 integers, as input. A[] is sorted in the ascending order and B[] is sorted in the descending order. Print out all the numbers in the ascending order. For example, (a code to read in input is posted in public/homework)

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!