online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include<stdio.h> int main() { int i, n; char name[20][80]; printf("\nEnter the number of students: "); scanf("%d", &n); printf("\nEnter the name of the students: "); int j = 0; while(j<n) { printf("Write to index: %d", j); fgets(name[j], 80, stdin); if (name[j][0] != '\n') { j++; } } printf("\nThe name of the students are: \n"); for(i=0; i<n; i++) { puts(name[i]); } 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