Question
Print the Maximum and Minimum Value of Signed Character Data Types. These values are predefined in the Header-files "limits.h". It is defined with the variable name CHAR_MAX and CHAR_MIN
Sample TestCase Expected Output
Minimum Value of Signed Character is -128
Maximum Value of Signed Character is 127
Answer
#include<stdio.h> #include<limits.h> int main() {
int min,max; min=CHAR_MIN;
max=CHAR_MAX;
printf("Minimum Value of Signed Character is %d\n",min); printf("Maximum Value of Signed Character is %d",max); return 0;
}Note
Check Letter Formats
This comment has been removed by a blog administrator.
ReplyDelete