also another problem now....

Code:
#include <stdio.h>

main()
{
        double nc;
        
         nc = 0;
        while(getchar() != EOF)
                 ++nc;
             printf("ld\n", nc;)       /* btw thats a L not a "one" */
       
           getchar();
}
for some reason, after typing a bunch of characters and going to EOF, the output is always 0?!!!! im really confused right now.....

btw my dev c++ is 4.9.9.2