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. - Learn Engineering

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

Breaking

Friday, July 3, 2020

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.


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 

Follow Us For More...

2 comments:

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

    ReplyDelete
  2. I'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