Convert decimal number to binary in C : <p>For an assignment I need to convert a 16-bit decimal number to a binary number. So for example the number 9 should print 0000000000001001. My professor started us with this code:</p>

<pre><code>void printBinary(short n)
{
}

int main(int argc, char **argv)
{
    short n;
    printf("Enter number: ");
    scanf("%hd", &amp;n);
    printBinary(n);
}
</code></pre>

<p>I am very confused as to where to go from here. I really would appreciate anyone helping me understand what to do, as I am very new to coding. Thanks in advance.</p>
