Question:https://hack.codingblocks.com/contests/c/509/1371
Solution:https://ide.codingblocks.com/s/38961
I am able to pass the testcases but I wanna ask
- what happens when cin.get() after reading characters reaches end of input(after ‘s’) e.g aaabbccds because
- when i tried to trace it through debugger ch was storing this value -1 ‘\377’ what is that?
- is there other way than this (ch!=-1) to detect end of input?