online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main() { char s[30]; char t[30]; int i, j, c, count=0; printf("enter the string\n"); scanf("%s",s); for(i=0; s[i] !='\0'; i++); for (c=i-1, j=0; c>=0; c--,j++) { t[j] =s [c]; } for(i=0;s[i] != '\0'; i++) { if(t[i] !=s[i]) { count++; } } if (count==0) printf("%s is a palindrome",s); else printf("%s is not a palindrome",s); 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