Code:
bar(unsigned int* to_change) {
*(to_change) = z;
}
Try this....