online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> // Declare Structure struct students { // Variable Declaration char first_name[10]; int id; }; // Main int main() { // Variable Declaration int i,foo_bar; // Ask User for any number, actually number of students printf("Enter any Number: "); scanf("%d",&foo_bar); struct students stud[foo_bar]; // Enter first_name and id upto entered number of students one by one for(i=0; i<foo_bar; i++) { printf("Student: %d\n",i+1); // Asks User for first_name and id printf("Enter first_name: "); scanf("%s",stud[i].first_name); printf("Enter id: "); scanf("%d", &stud[i].id); } printf("\nYou Entered\n"); // Print What YOu Entered for(i=0; i<foo_bar; i++) { printf("\nStudent: %d\n",i+1); printf("first_name: %s\n", stud[i].first_name); printf("id: %d", stud[i].id); } 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