why.
#include<stdio.h>
#include<string.h>
int main()
{
FILE *fp;
char c;
fp=fopen("random","w");
while((c=getchar())!=EOF)
putc(c,fp);
printf("\nNo. of characters = %ld",ftell(fp));
fclose(fp);
}
#include<stdio.h>
#include<string.h>
int main()
{
FILE *fp;
char c;
fp=fopen("random","w");
while((c=getchar())!=EOF)
putc(c,fp);
printf("\nNo. of characters = %ld",ftell(fp));
fclose(fp);
}
|
|
|
Quote
#define class struct // All is public.
0 members, 1 guests, 0 anonymous users