online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <stdlib.h> typedef struct object_t { char name[30]; int score; } object_t; int cmpfunc(const void *a, const void *b) { const object_t *aa = (const object_t *)a; const object_t *bb = (const object_t *)b; return bb->score - aa->score ; } int main(void) { object_t obj[] = { {"aanager", 1000}, {"banager", 900}, {"canager", 700}, {"danager", 500}, {"eanager", 600}, {"fanager", 300}, {"ganager", 100}, {"hanager", 200}, {"inager ", 400}, {"janager", 800} }; qsort(obj, sizeof obj / sizeof *obj, sizeof *obj, cmpfunc); for (size_t i = 0; i < sizeof obj / sizeof *obj; i++) { printf("%s %d\n", obj[i].name, obj[i].score); } }

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