Page 80 - 6437
P. 80

After swap, value of a :200

                            After swap, value of b :100

                          It shows that the change has reflected outside the function as well, unlike call  by value
                   where the changes do not reflect outside the function.
                          By default, C uses call by value to pass arguments. In general, it means the code within a
                   function cannot alter the arguments used to call the function.









































































                                                                                                      83
   75   76   77   78   79   80   81   82   83   84   85