Can anyone tell me how to find the maximum value for a specific variable(i.e int, long long int, double)?
Also is there a way to set a variable to this value(without knowing it and typing it in)?
Using Dev C++.
Any help appreciated.:)

please explain it more , show us your code

max values are declared in limits.h

where do i find and how do i access limits.h?

limits.h is part of your compiler. Just look in your compiler install folder.

thanks

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.