Find gameobject it refer to

A and B are all gameobjects in the scene. A has a member c that refer to B. when click c in the scene, the editor navigate to B automatically.
How could I find B by c at runtime in codes?

I think you want GetComponent.<>() but this question is a little vague.

//Attached to GameObject A    
var c : YourScriptNameHere;
var b : GameObject;

function Start () {
     c = GetComponent.<C>();
     b = c.whateverVariableReferencesB;
}