Question
Print the Maximum and Minimum values of Signed Long Integer datatype. These values are defined in "limits.h" header files. The value is Stored in the Variable Name LONG_MAX and LONG_MIN.
Sample TestCase Expected Output
Minimum Value of Signed Long Integer is -922337203685477808
Maximum Value of Signed Long Integer is 9223372036854775807
Answer
#include<stdio.h> #include<limits.h> int main() {
long min,max;
min=LONG_MIN; max=LONG_MAX;
printf("Minimum Value of Signed Long Integer is %ld\n",min); printf("Maximum Value of Signed Long Integer is %ld",max); return 0;
}Note
Check Letter Formats
This comment has been removed by a blog administrator.
ReplyDeleteI've been looking for info on this topic for a while. I'm happy this one is so great. Keep up the excellent work. Stickers 5 Fitzwilliam Square
ReplyDelete