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
What does emoji p mean?
What does != Mean in c?
Why is void main used?
what are the facialities provided by you after the selection of the student.
How do you determine a file’s attributes?
Explain why can’t constant values be used to define an array’s initial size?
what is the function of pragma directive in c?
How is null defined in c?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
Is c is a middle level language?
how to write optimum code to divide a 50 digit number with a 25 digit number??
When should volatile modifier be used?
What does calloc stand for?
Explain about C function prototype?
What is difference between constant pointer and constant variable?