online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> #include <string.h> int main() { char name[100] = ""; while (name == "") { printf("Hi! Can you enter here your name?\n"); scanf("%s", &name); } int length_of_name = strlen(name); if (strlen(name) <= 2) { printf("Your name has to be at least 3 character long. Your name is %s character long currently", length_of_name); } else { char goodslashbad[100]; printf("Oh, hi, %s! It's so nice to see you! How are you today? (good/bad)\n").tolower(); scanf("%s", &goodslashbad); if (goodslashbad == "good") { printf("Looks like someone is having a great day today! =)"); } else if (goodslashbad == "bad") { printf("something bad happened? Oh no! I hope you'll be okay!"); } else { printf("Your answer isn't recognised. Please try again."); scanf("%s", &goodslashbad); } } }

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