0

Can anyone tell me if it is possible to set a value in an array to infinity and if so how to go about it?
Thanks.

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by frogboy77
1

If you are talking about an int or float array, the answer is no because there is no such value as infinity. Integers have maximum values, which are declared in limits.h header file.

Edited by Ancient Dragon: n/a

0

Yes i was meaning an int array, will just have to try it with max value instead. Thanks.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.