fixed reference in c learning