getchar is still an int by the POSIX and C standards. Did you forget to include stdio.h or include something that redefines it? This example works for me:
#include <stdio.h>
int main()
{
int c;
c = getchar();
}
solved Console doesnt display histogram