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

What does emoji p mean?

1122


What does != Mean in c?

1056


Why is void main used?

1097


what are the facialities provided by you after the selection of the student.

2265


How do you determine a file’s attributes?

1089


Explain why can’t constant values be used to define an array’s initial size?

1358


what is the function of pragma directive in c?

1127


How is null defined in c?

1157


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2871


Is c is a middle level language?

1070


how to write optimum code to divide a 50 digit number with a 25 digit number??

3270


When should volatile modifier be used?

1018


What does calloc stand for?

1168


Explain about C function prototype?

1100


What is difference between constant pointer and constant variable?

1322