online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> /////////////오름차순//////////////// void bubbleSortAscending(int arr[], int n){ for(int i=0; i<n-1; i++){ for(int j =0; j<n-i-1; j++){ if(arr[j]>arr[j+1]){ int temp = arr[j]; arr[j] = arr[j+1]; arr[j + 1] = temp; } } } } //////////////내림차순/////////////// void bubbleSortAscending(int arr[], int n){ for(int i=0; i<n-1; i++){ for(int j =0; j<n-i-1; j++){ if(arr[j] < arr[j+1]){ int temp = arr[j]; arr[j] = arr[j+1]; arr[j + 1] = temp; } } } } //if 문 안에 arr[j]와 arr[j+1] 값 사이 부등호를 바꿔야 차순이 바뀜.

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