I have declared a global variable in my c++ program. I have initialized this global variable in my main function. After that I have called another function named f(). In output it turns into a loop and constantly printing value.
It should print value just 2 times.
It has turned into a loop
Steps to reproduce:
Declare a global variable in c++. Create a function and call from main function.
Bug appears at this link:
Chrome Browser/Windows 10