Print the Maximum and Minimum Value of Signed Integer Data Types. These values are predefined in the Header-files "limits.h". It is defined with the variable name INT_MAX and INT_MIN - Learn Engineering

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

Breaking

Thursday, July 2, 2020

Print the Maximum and Minimum Value of Signed Integer Data Types. These values are predefined in the Header-files "limits.h". It is defined with the variable name INT_MAX and INT_MIN

Question

Print the Maximum and Minimum Value of Signed Integer Data Types. These values are predefined in the Header-files "limits.h". It is defined with the variable name INT_MAX and INT_MIN

Sample TestCase Expected Output

  2147483647

-2147483648


Answer

    #include<stdio.h>
    #include<limits.h>      
    int main()
      {
        int min,max;
        min=INT_MIN;
        max=INT_MAX;
        printf("%d\n%d",max,min);
        return 0;
    }

Note

Check Letter Formats 

Follow Us For More...

No comments:

Post a Comment