Question: Write another C program which will readcharacters from its standard input stdin,count the number ofNON-alphabetic ones including newlines (see the file/usr/include/ctype.h), that is, count those
Write another C program which will readcharacters from its standard input stdin,count the number ofNON-alphabetic ones including newlines (see the file/usr/include/ctype.h), that is, count those characters not in the a-zrange nor in the A-Zrange, and write out all characters read. To readand write characters, this program usesonly stdin and stdout,andonly the stdio library routines (see stdio.h) for input and output(see getchar and putchar). When it hits EOF in its input, the programwill print out the finalnon-alphabetic count on stderr using fprintfand then exit(0).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
