what is the meaning of this?Code:(1) void exam(int &x){ } //call the function exam(x);
shouldn't be say
(2)Code:void exam(int *x){ } //call the function exam(&x);
if we call a function like this
//call itCode:(2) void exam2(istream cin){ } exam2(cin);
[/code]
cin use the iostream library but when we declare the function we use istream which
iostream inherit from it , what would be the different if we was declaring the function with iostream library
thanks