Sunday 1 January 2017

Program to illustrate working of call- by – value method of a function invoking.

Share & Comment
CODE

#include <iostream.h>

#include <stdlib.h>

Int main ()

{              system (“CLS”) ;

                Void change (int) ;

                Int orig = 10 ;

                Cout <<” The original value is :”<<orig<<”\n” ;

                Change(orig) ;

                Cout <<” Value after change ( ) is over : “ << orig << “ \n” ;

Return 0 ;  


Tags:

Written by

Hy, i am a Code Geek ! And like to eduate others.

0 comments:

Post a Comment

 
Copyright © C++ Programming | Designed by Templateism.com