How to attach to hex values next to each other and then display
<p>Suppose I have the following.</p>

<pre><code>int main(){
    int x = 0x02;
    int y = 0x72;
    //Figure out how to put 0x02 and 0x72 together to make 0x272.
}
</code></pre>

<p>As the comment says, I want to figure out how to put the hex values together.  It's not simple addition of numbers.</p>

<p>That code up there is one part of a much larger project, and I'm wondering how to solve this problem.</p>