//will the address output be same
#include <stdio.h>
void printAddress(int n);
int main() {
int n=4;
printf("Address of n is %u\n",&n);
printAddress(n);
printf("Address of n is %u\n",&n);
return 0;
}
void printAddress(int n){
printf("Address of n is %u\n",&n);
}
//this program is written to show that in the function copy of the value is give
// the original value remains unchanged.
//it will show warnings but answer too
// we can also write %d instead of %u
To embed this project on your website, copy the following code and paste it into your website's HTML: