title: Fooling a c++ compiler. Passing int instead of a cont int into function
body: <p>How can i pass an <strong>int</strong> into a function that is expecting a <strong>const int</strong>.</p>
  
  <p>Or is there a way of modifying cont int value?</p>
  
  <p>Edit: I Should have mentioned this earlier, i am using ccs c compiler that is used to program pic microcontroller. fprintf function takes <strong>constant</strong> stream as its first argument. It will only accept a constant int and throw a compilation error otherwise "Stream must be a constant in the valid range.".</p>
  
  <p>Edit 2: Stream is a constant byte.</p>