online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <string.h> void main() { char str1[50]; int i, l = 0; printf("\n\nFind the length of a string:\n "); printf("-------------------------------------\n"); printf("Input a string : "); scanf("%s", str1); for (i = 0; str1[i] != '\0'; i++) { l++; } printf("The string contains %d number of characters. \n",l); printf("So, the length of the string %s is : %d\n\n", str1, l); }

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