online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <string.h> #include <stdio.h> int main () { char s[100], b[100], temp; int n, len, i; printf ("Enter the String\n"); scanf ("%s", s); printf ("\nEntered String=%s", s); printf ("\nEnter String to be matched->"); scanf ("%s", b); printf ("\nEntered String to be matched->%s", b); len = strlen (s); if (len != strlen (b)) { printf ("\nthey are not cyclic anagram\n"); getchar (); return 0; } if (strcmp (s, b) == 0) { printf ("\nThey are cyclic anagram\n"); getchar (); return 0; } for (i = 0; i < len; i++) { temp = b[len - 1]; for (n = len - 1; n >= 0; n--) { b[n] = b[n - 1]; } b[0] = temp; if (strcmp (s, b) == 0) { printf ("\nthey are cyclic anagram\n"); getchar (); return 0; } } printf ("\nThey are not cyclic anagram ....\n"); getchar (); 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