online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include<stdio.h> #define size 10 struct books { char title[25]; char pub[25]; int year; int status; }; int main() { struct books books[100]; int i; for(i=0;i<size;i++) { printf("Title : "); scanf("%s", &books[i].title); printf("Publication :%d ", books[i].pub); printf("Year :%d ", books[i].year); printf("Status :%s", books[i].status); printf("----------------------\n"); } for(i=0;i<size;i++) { printf("\n", books[i].title,"\t\t|",books[i].pub,"\t\t|",books[i].year,"\t\t|"); if(books[i].status <=1985) { printf("Outdated OR Reference"); } else if(books[i].status >= 1986 && books[i].status <=2000) { printf("Medium"); } else { printf("Lates"); } } }

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