+ 5
Explain change in c programme
work of change in c https://code.sololearn.com/cRT6VcJOCK72/?ref=app
6 Answers
+ 4
When an argument is passed by value, the C function receives a copy of the actual value of the argument. So, any change to the variable passed by value within function doesn't change actually value
+ 4
Change Function!? What's it!? Are you sure, it is part of C!?
+ 4
/* Try This Code in SoloLearn CodePlayground! */
#include <stdio.h>
int change (int);
int main()
{
int a = 4;
printf("\n\n change = %d \n a(outside change function) = %d", change(a), a);
return 0;
}
int change (int a)
{
printf("\n \a a(within change function) = %d",++a);
return a;
}
+ 3
You're Welcome!
+ 1
never heard of a change function,im sure you mean something else
+ 1
thanks sir