Write a C Program to declare an array for 2 0 floats. Accept the values from the user sort the two arrays in descending order. Merge the two arrays into a new array and display the new array.
Write a C Program to declare an array for 2 0 floats.?
what did you mean by 2 0 floats? is it 20 floats or 2.0 floats or what?
if you said 2D floats or 2 array of floats, i understand.
Let say you need to declare a 2D floats, so it will become like this:
float twod_flArray[20][20];
or
float twod_flArray[2][2] = {{1.0,2.0},{2.0,3.3}};
Sorting problem may be done by using a bubblesort algorithm.
There are a lot of it in the net, try to search.
To merge it, just append into the new array.
Reply:Homework I gather...
I'm guessing you would get a better response if you asked for help -vs- what appears to be a command to write it for you
Take care
Might also look into joining or creating a study group, good social / team building as well as helpful for study.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment