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
please explain every phase in the "SDLC" in the dotnet.
What are multidimensional arrays?
What will the preprocessor do for a program?
How was c created?
What is #include stdio h?
How do I create a directory? How do I remove a directory (and its contents)?
What is exit() function?
swap 2 numbers without using third variable?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
What is use of #include in c?
Write a C program in Fibonacci series.
what will be the output for the following main() { printf("hi" "hello"); }
how should functions be apportioned among source files?
What is data structure in c programming?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers