0

How to print counting from 0 to infinite with while lopps in c++

24th Mar 2019, 10:20 AM
Vishakha Kumari
Vishakha Kumari - avatar
3 Réponses
0
No data type has a range upto infinite and even if there was , it would gonna take infinite time to run it completely and you would end up with time limit exceeded.
24th Mar 2019, 11:51 AM
Sahil Bhakat
Sahil Bhakat - avatar
0
welp, 3 months but whatever int i; while(true){ cout << i++ << " "; } for(int i;cout << i++ << " ";){} of course, run time error because it takes a lot time to get to infinite.
11th Jun 2019, 8:51 PM
Choe
Choe - avatar
0
Choe it tooks infinite time to get infinity 😂
12th Jun 2019, 5:46 PM
Sahil Bhakat
Sahil Bhakat - avatar