online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include<stdio.h> #include<conio.h> #include<string.h> int main(){ char str[20]; int i, len, temp=0; int flag = 0; printf("Enter a string:"); scanf("%s", str); len = strlen(str); for(i=0;i < len ;i++){ if(str[i] != str[len-i-1]){ temp = 1; break; } } if (temp==0) { printf("String is a palindrome"); } else { printf("String is not a palindrome"); } 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