Question
Print the Maximum and Minimum values of Unsigned Long Integer datatype. These values are defined in "limits.h" header files. The value is Stored in the Variable ULONG_MAX.
Sample TestCase Expected Output
Minimum Value of Unsigned Long Integer is 0
Maximum Value of Unsigned Long Integer is 18446744073709551615
Answer
#include<stdio.h> #include<limits.h> int main() {
unsigned long umin,umax;
umin=0; umax=ULONG_MAX;
printf("Minimum Value of Unsigned Long Integer is %lu\n",umin); printf("Maximum Value of Unsigned Long Integer is %lu",umax); return 0;
}Note
Check Letter Formats
No comments:
Post a Comment