1 2 3 4
file "text1.txt" contain the above data
Output:Code:#include<stdio.h>
void main()
{
FILE *fp;
int i;
fp=fopen("text1.txt","r");
while((i=getw(fp))!=EOF)
putw(i,stdout);
}
1 2 3
But it should be 1 2 3 4..Where is 4?
I am not getting the answer..Please help me out.