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
This comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDelete