Print the Maximum and Minimum values of Signed Long Long Integer datatype. These values are defined in "limits.h" header files. The value is Stored in the Variable LLONG_MAX and LLONG_MIN - Learn Engineering

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

Breaking

Saturday, July 4, 2020

Print the Maximum and Minimum values of Signed Long Long Integer datatype. These values are defined in "limits.h" header files. The value is Stored in the Variable LLONG_MAX and LLONG_MIN


Question

Print the Maximum and Minimum values of Signed Long Long Integer datatype. These values are defined in "limits.h" header files. The value is Stored in the Variable LLONG_MAX and LLONG_MIN

Sample TestCase Expected Output

  Minimum Value of Signed Long Long Integer is -9223372036854775808

Maximum Value of Signed Long Long Integer is 922337203685477507


Answer

    #include<stdio.h>
    #include<limits.h>      
    int main()
      {
        long long min,max;
        min=LLONG_MIN;
        max=LLONG_MAX;
        printf("Minimum Value of Signed Long Long Integer is %lld\n",min);
        printf("Maximum Value of Signed Long Long Integer is %lld",max);
        return 0;
    }

Note

Check Letter Formats 

Follow Us For More...

1 comment: