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

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

Breaking

Sunday, June 28, 2020

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


Question

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

Sample TestCase Expected Output

  Minimum Value of Unsigned Long Integer is 0

Maximum Value of Unsigned Long Integer is 18446744073709551615


Answer

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

Note

Check Letter Formats 

Follow Us For More...

No comments:

Post a Comment