User Posts: royal52
0
Cheapest Domain Registrars
0

Website is a remarkable method to form an online identity. In order to open any website, a complete address of the site is required which is called as URL ...

0
Top Augmented Reality Devices
0

Nowadays augmented reality has stroked the world with the invention of its devices. Augmented reality is a tool which is inspiring the real world with digital ...

0
Virtual reality VS Augmented Reality
0

One of the chief perplexities of today’s technology is virtual and augmented realities. Mutually, they are gaining a great deal of consideration from media. In ...

0
Android vs IPhone 2015
0

Nowadays, technology is emerging so fast that it is difficult to choose which Smartphone to buy. Purchasing a Smartphone is just like purchasing a car. ...

1
ArrayList in C++ with Examples
3

ArrayLists have been used by programmers since the late 90’s. They were implemented to be more flexible collections than arrays. They are implemented in many ...

0
File Handling in C++ with Examples
2

Files are used to save or retrieve data from storage devices, e.g. we can store certain information in a text file and later on, can use that information. ...

0
Top 11 Best Google Play Store Alternatives
0

Google play store is a platform which has a vast variety of Android apps. It allows us to install any application we want in our mobile phones. There was a ...

0
Free Create Windows 10/8 Bootable USB Drive with AOMEI Partition Assistant
0

Now more and more users need to BYOD, for this situation, Microsoft has released a new feature called Windows To Go in the Enterprise Edition of Windows 10 and ...

0
Top 6 Game Engines Of 2015
0

A game engine is a kind of software that aims for the formation and progress of video games. It is employed for designing games for computers, mobiles and ...

0
Polymorphism in C++ with Examples
1

Polymorphism is the capability to use an operator or method in different ways. Polymorphism gives the different function to the operators or methods. ...

0
Top 5 pop under ad networks of 2015
0

Now a days, ad networks are very prevalent among people for online earning purposes. In them, Google AdSense is the world’s leading ad network through which ...

0
AOMEI Backupper — A Great Windows Backup Software
0

AOMEI Backupper is a Windows backup software released by AOMEI Technology. Compare to Windows built-in backup program, AOMEI Backupper has more functions and ...

Browsing All Comments By: royal52
  1. just write if(array[j] lesser then array[j+1]) instead of if(array[j] greater then array[j+1]) and it will sort the array in descending order.

  2. I have updated my comment with a code block containing while loop, cheers.

  3. Okay, that’s the code of Bubble sort by using While Loop written in C++.

    while(i < 4) { int j = 0; while(j < 4) { if(array[j]>array[j+1])
    {
    hold=array[j];
    array[j]=array[j+1];
    array[j+1]=hold;
    }
    j++;
    }
    i++;
    }

    If you have any other questions then let me know, thanks.

  4. yes we can use a while loop.

  5. thanks for pointing out.

  6. thanks for pointing out !!!