c pgm count no of lines , blanks, tabs in a para(File concept)
Answer Posted / shanker khandelwal (bce mohali
include <stdio.h>
void main()
{
FILE *FP;
char Ch;
int l=o,b=0,t=0,p=0;
FP = fopen(filename, mode);
while (FP) {
if(ch==EOF)
break;
l++;
if(ch==" ")
b++;
if(ch=="\n")
p++;
if(ch=="\t")
t++;
fclose(fp);
display counts;
getch();
}
| Is This Answer Correct ? | 16 Yes | 10 No |
Post New Answer View All Answers
What are the 4 types of programming language?
What are linker error?
What are volatile variables in c?
What is data structure in c and its types?
What is the difference between functions getch() and getche()?
What is c language and why we use it?
How can a process change an environment variable in its caller?
Subtract Two Number Without Using Subtraction Operator
Can a pointer be static?
How variables are declared in c?
Why c is called free form language?
Is c is a procedural language?
What is a header file?
What is the meaning of && in c?
How to create struct variables?