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

Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

2037


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

1102


what is a function method?give example?

2352


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

1022


Differentiate abs() function from fabs() function.

996


How is a null pointer different from a dangling pointer?

1006


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1045


Explain how can I read and write comma-delimited text?

1154


what is the role you expect in software industry?

2136


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1880


Why malloc is faster than calloc?

1050


write a program to print data of 5 five students with structures?

2037


p*=(++q)++*--p when p=q=1 while(q<=6)

1745


the question is that what you have been doing all these periods (one year gap)

2073


Explain about the constants which help in debugging?

1361