online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include<stdio.h> #include<string.h> int main(){ char string[500]; scanf("%[^\n]", string); char string1[100][200]; int k = 0; int j = 0; int count = 0; for(int i=0; i<strlen(string); i++){ if(string[i]!=' '){ string1[k][j]=string[i]; j++; }else if(string[i]==' '){ count++; j=0; k++; } } for(int i=0; i<=count; i++){ if((i+1)%2==0){ for(int j=strlen(string1[i]); j>=0; j--){ printf("%c", string1[i][j]); } }else{ for(int j=0; j<strlen(string1[i]); j++){ printf("%c", string1[i][j]); } } if(i!=count){ printf(" "); } } 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