![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Of course, fscanf
, fprintf
, and fclose
must
know about the structure variables in structures returned by calls to
fopen
. You yourself need to know nothing at all about those structure
variables, because fscanf
, fprintf
, and fclose
isolate
you from them. Accordingly, the actual structure variables included may
vary from implementation to implementation, as long as fscanf
,
fprintf
, fclose
and other inputoutput functionsperform
the right computations.
As you have learned, when you move the details of how information is stored behind a set of functions, you are said to be doing data abstraction, and you are said to be hiding the details of how a computation is done behind a data-abstraction barrier.