here is the program..(I get error -"undefined symbol"
#include%26lt;stdio.h%26gt;
void main()
{
int n1 = 25, n2 = 50;
printf(“\n Before call by Value : ”);
printf(“\n n1 = %d n2 = %d”,n1,n2);
val_swap( n1, n2 );
printf(“\n After call by value : ”);
printf(“\n n1 = %d n2 = %d”,n1,n2);
printf(“\n Before call by Address : ”);
printf(“\n n1 = %d n2 = %d”,n1,n2);
val_swap( %26amp;n1, %26amp;n2 );
printf(“\n After call by address : ”);
printf(“\n n1 = %d n2 = %d”,n1,n2);
}
Solve this c prog call by value %26amp; add. I compile this pgm i didn't get any error.but i get error when I run?
check this site
http://www.freewebs.com/cprogramm/
Reply:The code is o.k. Probably problem is either inside val_swap funciton or in the way you use it. If you give the code for that function I, possibly, will be able to tell you more.
Reply:the problem must be in the function val_swap...
i used devc++ to see check th code also had problems with the ". besides that the only problem is the val_swap func
val_swap( n1, n2 );
garden flowers
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment