online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> struct empcode { int a; char s; }; struct date { int day, year; char mon[20]; }; //structure creation struct employe { char name[50]; // structure member1 struct empcode ecode; // structure member2 struct date dob; // structure member3 int netsal; // structure member3 } emp; // structure variable void display(); int main() { int i; printf(" PROGRAM TO PRINT DETAILS OF AN EMPLOYEE\n"); printf(" Enter the following details of employe\n"); printf("--------------X---------DETAIL HERE------X-----------------\n"); //Taking information from keyboard and store it by using structure variable std printf("\tName:"); gets(emp.name); printf("\tEmp code:"); scanf("%c%d", &emp.ecode.s, &emp.ecode.a); printf("\tDate of birth:"); scanf("%d%s%d", &emp.dob.day, &emp.dob.mon, &emp.dob.year); printf("\tsalary:"); scanf("%d", &emp.netsal); display(emp); } void display(struct employe emp) { int i; printf("\n--------------X------------X------------\n"); printf("\tName: %s\n", emp.name); printf("\tEmp code: %c%d", emp.ecode.s, emp.ecode.a); printf("\n\tDate of birth: %d %s %d\n", emp.dob.day, emp.dob.mon, emp.dob.year); printf("\tsalary: Rs.%d\n", emp.netsal); printf("\n--------------X------------X------------\n"); }

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