title: index in c programming
body: <p>I have a question about locating an index.</p>
  
  <p>suppose I have a "relative" index in an array (that was allocated with malloc), or basically an index that doesn't tell me where I am really. how can I find the "absolute" index? 
  I'm trying to use binary search to locate a number in an array but I also need the index, and when I do it with recursion I loose the actual index.</p>
  
  <p>I was thinking since it is an array maybe I can subtract sized or something (suppose it's an ints array) to figure out how many steps I made from the begining but I can't quite figure it out. can you help?   </p>