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-1) - i; j++){ if(arr[j]>arr[j+1]){ //์˜ค๋ฆ„์ฐจ์ˆœ ์ •๋ ฌ, ๋‚ด๋ฆผ์ฐจ์ˆœ ์กฐ๊ฑด์€ -> if(arr[j]<arr[j+1]) int temp = arr[j]; arr[j]=arr[j+1]; arr[j+1]=temp; } } } } int main() { int arr[]={7,4,5,1,3}; int n = sizeof(arr)/sizeof(arr[0]); printf("์ดˆ๊ธฐ ์ƒํƒœ ๋ฐฐ์—ด: [ "); for(int i=0; i<n; i++){ printf("%d ", arr[i]); } printf(" ] \n"); bubbleSortAscending(arr, n); printf("์ •๋ ฌ๋œ ๋ฐฐ์—ด: [ "); for(int i=0; i<n; i++){ printf("%d ", arr[i]); } printf(" ] \n"); return 0; }

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