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
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
Why are algorithms important in c program?
What are linked lists in c?
What is the difference between functions getch() and getche()?
When should I declare a function?
What is s in c?
largest Of three Number using without if condition?
Why is c called c not d or e?
Who developed c language?
What is the use of typedef in structure in c?
Is a house a mass structure?
Is there a way to jump out of a function or functions?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What does sizeof return c?