online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> #include <string.h> int count(char str[100]){ int count =0; for(int i=0; str[i]; i++){ count++; } return count; } int reverse(char str[100]){ } int main() { char str[100]; int i, len; scanf("%[^\n]s",str); len = count(str); for(i = len - 1; i >= 0; i--) { if(str[i] == ' ') { str[i] = '\0'; printf("%s ", &(str[i]) + 1); } } printf("%s", str); 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