
322 Programming and Data Structures
fUE.'/
f
c -
printf ( m\n In fun OlB»%d Cm%d*,b,c);
}
OUTPUT;
In main () B= 10 C=5
In fun 0 B = ll C=4
Again In main 0 B= 12 C=3
Explanation In the above program variables V and 'c' are defined outside the main ( ) , hence
they are global. They can be called by any other function. The same variables V and 'c! are used
throughout the program. In main (), values of V and 'c' are printed.
The function fun () is called, V is incremented and 'c' is decremented. The values of V and 'c'
are printed. The control then returns to the function main ().
Again 'b' is incremented and 'c' is decremented. The values ...