c pgm count no of lines , blanks, tabs in a para(File concept)
Answer Posted / saagar gugwad
#include <stdio.h>
int main()
{
FILE *FP;
char Ch;
FP = fopen(filename, mode);
while (FP) {
Ch=getch(FP);
switch(Ch) {
case ' '://incremnt space
break;
case ''://check all consitions
}
display counts;
}
}
| Is This Answer Correct ? | 3 Yes | 12 No |
Post New Answer View All Answers
Is c easy to learn?
What is data type long in c?
Explain the priority queues?
What is keyword with example?
Explain the difference between getch() and getche() in c?
What is nested structure?
When should volatile modifier be used?
What are external variables in c?
Why is main function so important?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What is p in text message?
What is the difference between null pointer and wild pointer?
please explain every phase in the "SDLC" in the dotnet.
What is the difference between array and pointer?
What does == mean in texting?