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 is function and its example?
Can we change the value of constant variable in c?
Write a program to reverse a string.
Compare and contrast compilers from interpreters.
What is pointers in c with example?
Does free set pointer to null?
What is a example of a variable?
Is there a way to switch on strings?
What is the difference between text and binary modes?
What is operator promotion?
How many bytes is a struct in c?
Where are some collections of useful code fragments and examples?
What is #include cctype?
How can you find the exact size of a data type in c?
What is c definition?