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.
frogboy77
73
Posting Pro in Training
Recommended Answers
Jump to PostIf 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.
All 3 Replies
Clinton Portis
211
Practically a Posting Shark
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
frogboy77
73
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.