Question
Print the Maximum and Minimum Value of Unsigned Integer. These values are predefined in the Header-files "limits.h". It is defined with the variable name UNIT_MAX
Sample TestCase Expected Output
Minimum Value of Unsigned Integer is 0
Maximum Value of Unsigned Integer is 4294967295
Answer
#include<stdio.h> #include<limits.h> int main() {
unsigned int umin,umax;
umin=0; umax=UCHAR_MAX;
printf("Minimum Value of Unsigned Integer is %d\n",umin); printf("Maximum Value of Unsigned Integer is %d",umax); return 0;
}Note
Check Letter Formats
No comments:
Post a Comment