Print the Maximum And Minimum Value of Unsigned Character Datatypes. These Value are Defined in "limits.h" Header Files. These value is Stored in the Variable UCHAR_MAX - Learn Engineering

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

Breaking

Tuesday, June 23, 2020

Print the Maximum And Minimum Value of Unsigned Character Datatypes. These Value are Defined in "limits.h" Header Files. These value is Stored in the Variable UCHAR_MAX

Question

Print the Maximum And Minimum Value of Unsigned Character Datatypes. These Values are Defined in "limits.h" Header Files. This value is Stored in the Variable UCHAR_MAX

Sample TestCase Expected Output

  Minimum Value of Unsigned Character is 0

Maximum Value of Unsigned Character is 255


Answer

    #include<stdio.h>
    #include<limits.h>
    int main()
    {
        unsigned int umin,umax;
        umin=0;
        umax=UCHAR_MAX;
        printf("Minimum Value of Unsigned Character is %d\n",umin);
        printf("Maximum Value of Unsigned Character is %d",umax);
        return 0;
    }

Note

Check Letter Formats 

Follow Us For More...

2 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete