#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
--
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en
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
--
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en
Comments
Post a Comment