Home » C Programming » Data Types » Question
  1. What is the output of this C code?
    #include <stdio.h>
    int main()
    {
    char chr;
    chr = 128;
    printf("%d\n", chr);
    return 0;
    }
    1. 128
    2. -128
    3. Depends on the compiler
    4. None of the mentioned
Correct Option: B

Signed char will be a negative number.



Your comments will be displayed only after manual approval.