Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 Help Members By Posting Answers For Below Questions

WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2458


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

2768


Why are algorithms important in c program?

1135


What are linked lists in c?

1140


What is the difference between functions getch() and getche()?

1108


When should I declare a function?

1159


What is s in c?

1062


largest Of three Number using without if condition?

1617


Why is c called c not d or e?

1106


Who developed c language?

1110


What is the use of typedef in structure in c?

982


Is a house a mass structure?

1112


Is there a way to jump out of a function or functions?

1120


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2172


What does sizeof return c?

1078