online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <string.h> struct cricket { char pname[20]; char tname[20]; int number; int number1; } data[10], temp; void main() { int i, j, n; printf("\nEnter number of phone number you want to store : "); scanf("%d", &n); for (i = 0; i < n; i++) { printf("\nEnter Person Name : "); scanf("%s", data[i].pname); printf("Enter Town Name : "); scanf("%s", data[i].tname); printf("Enter mobile number(after 5 digit press space): "); scanf("%d", &data[i].number); scanf("%d", &data[i].number1); printf("\n"); } for (i = 1; i < n; i++) for (j = 0; j < n - i; j++) { if (strcmp(data[j].pname, data[j + 1].pname) > 0) { temp = data[j]; data[j] = data[j + 1]; data[j + 1] = temp; } } for (i = 0; i < n; i++) { printf("\n%s\t%s\t%d%d", data[i].pname, data[i].tname, data[i].number, data[i].number1); } }

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