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

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

Breaking

Monday, June 29, 2020

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


Question

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

Sample TestCase Expected Output

  Minimum Value of Unsigned Long Long Integer is 0

Maximum Value of Unsigned Long Long Integer is 18446744073709551615


Answer

    #include<stdio.h>
    #include<limits.h>      
    int main()
      {
        unsigned long long umin,umax;
        umin=0;
        umax=ULLONG_MAX;
        printf("Minimum Value of Unsigned Long Long Integer is %llu\n",umin);
        printf("Maximum Value of Unsigned Long Long Integer is %llu",umax);
        return 0;
    }

Note

Check Letter Formats 

Follow Us For More...

No comments:

Post a Comment