+ 2

Why this is not working as I expected

I have written a program which will slowly write strings letters. But it is not working as I expected. There is not any mistake in my program then why it is just printing whole string at a time after mixture of delays. I'm working in PC not on "SoloLearn Code Play Ground" https://code.sololearn.com/cfaKkTS7xxWC/?ref=app#c

13th Nov 2020, 4:35 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
3 Answers
+ 4
The largest number you can store in a 4 bytes int is 2^16 = 65536 If you use an unsigned type of 8 bytes you can reach 2^64 that is around 1.8*10^19 edit: it actually is 2^31 not 2^16
13th Nov 2020, 4:58 PM
Davide
Davide - avatar
0
Davide Mǟɖ↻ôɖɆⱤ💉 This is not problem at all
13th Nov 2020, 5:09 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
0
Coder Kitten Your answer worked, but what do you mean by flush? What is use of fflush function?
13th Nov 2020, 5:11 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar