online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> #include <string.h> int main() { char text[]="привітати з новим роком і побажати здати роботи та отримати бали"; char aty[]="ати"; char *word=text; char *p1, *p2; int n=0; printf("Даний текст:\n"); while(*word){ printf("%c",*word); word++; } printf("\nСлова, які закінчуються буквосполученням 'ати':"); while(*word){ if(*word=='а'){ word++; if(*word=='т'){ word++; if(*word=='и'){ word++; n++; } } } word++; } printf("\nЇх кількість: %i",n); 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