#include<iostream.h>
void square (double);
void main()
{
double x;
x=123.456;
cout<< "The value of x before calling function is = "<< x<< endl;
cout<< "the value of x after calling function is = "<< square(&x)<< endl;
system ("pause");
}
void square(double *x)
{
cout<< "the value of x back in function is = "<< x<< endl;
*x= *x**x;
}
Asalam O alikum,
Hi everyone, attached below is DEV C++ function call by reference program. I am facing difficulty to run and understand it as there is some kind of an error occuring while compiling and running the program. Kindly check it and see if anyone of you can find the solution to this problem. If so then please send me the correct code and also do let me know where the problem is.
Regards,
M yaseen.
yaseenraja2000@gmail.com
--
Join us at facebook: https://www.facebook.com/VU.Study.Corner
Group Link: http://groups.google.com/group/VU-Study-Corner?hl=en
Group Rules: http://groups.google.com/group/VU-Study-Corner/web/group-rules
Unsubscribe: VU-Study-Corner+unsubscribe@googlegroups.com
Adult contents, Spamming, Immoral & Rudish talk, Cell number, Websites & Groups links specially in paper days are strictly prohibited and banned in group.
No comments:
Post a Comment