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
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
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
what is a function method?give example?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Differentiate abs() function from fabs() function.
How is a null pointer different from a dangling pointer?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
Explain how can I read and write comma-delimited text?
what is the role you expect in software industry?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
Why malloc is faster than calloc?
write a program to print data of 5 five students with structures?
p*=(++q)++*--p when p=q=1 while(q<=6)
the question is that what you have been doing all these periods (one year gap)
Explain about the constants which help in debugging?