online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
// program_Xaraktires_2ï.c // Author Tony_Dim 28/02/2023 #include <stdio.h> #include <string.h> int main() { char MyStr[100]; int i, Xarakt; Xarakt = 0; printf(" Give a word or a sentence \n"); gets(MyStr); for(i=0; MyStr[i] != '\0'; i++){ if(MyStr[i]!=' ') { Xarakt = Xarakt + 1; } } printf(" The character count is %d", Xarakt); getch(); 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