Hi. I'm using Redhat 7.2 and emacs that came with it. Learning C. I did the following little program from a C book.
#include <stdio.h>
int main(void)
{
putchar(65);
return 0;
}
my output after compiling and running is just blank after the program runs.
It's the same with the following
#include <stdio.h>
int main(void)
{
int ch;
ch = 65;
printf("The character that has the numerical value of 65 is:\n");
putc(ch, stdout);
return 0;
}
i compile putc.c with > gcc -o putc putc.c
then I run it at bash prompt with ./putc
and I get a blank line as output