You get nothing in from your printf statement because you have not reached EOF. run the following code, type random strings, spaces and tabs then signal EOF by pressing Ctrl-z. And start writng your programs correctly, as far as your concerned main always returns an int. When your adept to know it doesn't then you'll know
Code:
/* This is a program to count blanks, tabs, and newlines */
#include <stdio.h>
int main(void)
{
int nb, nt, nl, c;
nb = 0;
nt = 0;
nl = 0;
while ((c = getchar()) != EOF)
{
if (c == ' ')
++nb;
if (c == '\t')
++nt;
if (c == '\n')
++nl;
}
printf("%d %d %d\n", nb, nt, nl);
getchar();
return 0;
}