online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> int main() { char list[10][10] = { "짬뽕", "짜장면", "팔보채", "볶음밥", "공기밥" }; char temp[10] = {NULL}; for(int i = 0; i < 5; i++) { for(int j = i; j < 5; j++) { if(strcmp(list[i], list[j]) > 0) { printf("%d %d\n", i, j); strcpy(temp, list[i]); strcpy(list[i], list[j]); strcpy(list[j], temp); } } } for(int i = 0; i < 5; i++) { if(i != 0) printf(", "); printf("%s", list[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