Print the Maximum and Minimum Value of Unsigned Integer.These values are predefined in the Header files "limits.h". It is defined with the variale name UNIT_MAX - Learn Engineering

All the news and updates relevant to Engineering. You can also Write a post here

Breaking

Saturday, June 27, 2020

Print the Maximum and Minimum Value of Unsigned Integer.These values are predefined in the Header files "limits.h". It is defined with the variale name UNIT_MAX

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 

Follow Us For More...

No comments:

Post a Comment