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

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

Breaking

Wednesday, July 1, 2020

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

Question

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

Sample TestCase Expected Output

  Minimum Value of Signed Character is -128

Maximum Value of Signed Character is 127


Answer

    #include<stdio.h>
    #include<limits.h>      
    int main()
      {
        int min,max;
        min=CHAR_MIN;
        max=CHAR_MAX;
        printf("Minimum Value of Signed Character is %d\n",umin);
        printf("Maximum Value of Signed Character is %d",umax);
        return 0;
    }

Note

Check Letter Formats 

Follow Us For More...

No comments:

Post a Comment