#include <stdio.h>
/*
 * Rotate variable values clockwise
 */
void
rotate3(int *a, int *b, int *c)
{
	int tmp;
	tmp = *c;
	*c = *b;
	*b = *a;
	*a = tmp;
}
main()
{
	int v1, v2, v3;
	v1 = 1;
	v2 = 2;
	v3 = 3;
	rotate3(&v1, &v2, &v3);
	printf("Expect 3 1 2: [%d %d %d]\n", v1, v2, v3);
}