/* File: count.c By: Tep Dobry Date:*//* This is a short program to count the number of characters in a file */#include <stdio.h>main(){ char ch; int count = 0; /* while there are more characters */ while(scanf("%c", &ch) != EOF) /* count the character */ count = count + 1; /* print the result */ printf("There were %d characters in the file\n",count);}