c pgm count no of lines , blanks, tabs in a para(File concept)
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
When you call malloc() to allocate memory for a local pointer, do you have to explicitly free() it?
Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17
What is structure padding in c?
implement NAND gate logic in C code without using any bitwise operatior.
What is nested structure with example?
write a progrmm in c language take user interface generate table using for loop?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
How to develop software using "c" programming?
What is the use of a ‘