online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #define MAX_LENGTH 25 #define MAX_SCANF "%24s" int main() { char name1[MAX_LENGTH] = {0}; char name2[MAX_LENGTH] = {0}; bool b = false; printf("\nEnter a name: "); scanf(MAX_SCANF, name1); while(!b && strncmp("Fin", name1, MAX_LENGTH) != 0) { // Copy last input into current ?! strncpy(name2, name1, MAX_LENGTH); printf("\nEnter a name: "); scanf(MAX_SCANF, name1); if (strncmp(name1, name2, MAX_LENGTH) == 0) { printf("\nFound It\n"); b = true; } } printf("\nDone\n"); 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