Computer Science, asked by bayyasneha7, 5 hours ago

write a program that will read a file and count how many characters, spaces, tabs and newlines are present in it.​

Answers

Answered by rraju98
0

Answer:

Count Number of Spaces, Newlines, Tabs C Program

if(ch == ' ') This will check the occurrence of Spaces within the Text file. if(ch == '\n') This condition will will check the Number of Newlines. if(ch == '\t') This condition will check the Number of Tabs.

Similar questions