Question
Print the Maximum and Minimum Value of Signed Integer Data Types. These values are predefined in the Header-files "limits.h". It is defined with the variable name INT_MAX and INT_MIN
Sample TestCase Expected Output
2147483647
-2147483648
Answer
#include<stdio.h> #include<limits.h> int main() {
int min,max; min=INT_MIN;
max=INT_MAX;
printf("%d\n%d",max,min); return 0;
}Note
Check Letter Formats
No comments:
Post a Comment