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
In a switch statement, explain what will happen if a break statement is omitted?
Explain about the constants which help in debugging?
What is time null in c?
Are there namespaces in c?
What functions are in conio h?
What is identifiers in c with examples?
How can I dynamically allocate arrays?
What is the difference between arrays and pointers?
What should malloc() do?
What do you understand by friend-functions? How are they used?
Is it valid to address one element beyond the end of an array?
What is a macro?
How can I insert or delete a line (or record) in the middle of a file?
How do we declare variables in c?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler