+ 1
When i declare a integer variable and store within character then my loop becomes infinite.
6 ответов
+ 3
varun here, your program is not even entering the loop👇
https://code.sololearn.com/cyxo8uYxJXAn/?ref=app
+ 5
Yeah your code in not entering in loop . If u intilize any value and use cin before while . then it will be run infinite times.
+ 2
Can you share am example accompanying your statement?
+ 2
This is because you have not initialised the variable "I" and here it have an value equal to zero(this is a garbage value).
+ 1
Thanks bro and solo learn is amazing .