I am trying to write a simple assembly program that allows me to assign values and display them at certain points. I am only at "checkpoint A", which means I have yet to do any swapping, and already I am not showing what I expected. Why do I not see the output being alpha, beta, ... that is, why...
Argh! I even worked this out on paper, but it is not sorting!
int bubble(int twoarray[][4], int total){
int temp[4];
for (int index=0;index<total-1;index++ ){
if (twoarray[index][3]>twoarray[index+1][3]){
for (int i=0;i<4;i++){...
I have a 2D array that I need bubble sorted according to the last column, and I can't seem to get it right. Here's what i have so far:
int bubble(int twoarray[][4], int limit){
int temp[4], index;
for (;limit>0;limit--){
for (index=0;index<limit;index++){
for...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.