r/C_Programming • • Jul 25 '26

Project My first program written in C

https://github.com/IvanPashaev/CWords

Hi ! Im a beginner developer. I decided to learn C and wrote my first program—a small game that runs in the terminal

22 Upvotes

29 comments sorted by

View all comments

Show parent comment

1

u/Educational-Paper-75 Jul 28 '26 edited Jul 28 '26

How about:

int i=0;
while(random_word[i++])putchar('=');

We're talking nul terminated C strings here right?