online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include<iostream> void bubbleSort(int a[], int n) { for (int i = 0; i < n - 1; i++) for (int j = n - 1; j > i; j--) if (a[j] < a[j - 1]) std::swap(a[j], a[j - 1]); } int main() { int a[]={1,4,7,2,6,5,3,9,8,10}; bubbleSort(a, std::size(a)); for (size_t i=0;i<10;i++) { std::cout<< a[i]; } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue