unsigned int avg(unsigned int x, unsigned int y) { int temp; temp = (x+y)/2; return temp; } void caller() { unsigned int a=5, b=3; a = avg(a,b); }