I understand the syntax, actions & sequence of this program, nevertheless, could not answer the question: "describe what does this code do?" :confused:
help will be appreciated!Code:#include<stdio.h>
main()
{
int i,a,x,num;
unsigned int msk;
a=14;
msk=0x8000;
num=1;
for (i=1;i<17;i++,msk=msk>>1,num*=x)
{
x=1;
if (a&msk)
{
x=i;
}
}
printf ("num=%d\n ",num);
}