- It is used to writes a integer to
a file.
- It write only one value at a time.
- It is integer oriented function.
- It is similar to putc().
- It deals with only integer data.
Ex:
while((
n = getw (fp)) != EOF )
{
if
( n % 2 == 0 )
putw
( n, fp2 );
else
putw
( n, fp3 );
}
No comments:
Post a Comment