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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started