Hi!
result is: ascii-> " 10"
Is there any way to convert int data to binary array.I mean,
result is: ascii->"0000000000001010"
Thanks in advice
Code:
char ascii[13];
short int datax;
datax=10;
sprintf(ascii,"%6d",datax);
result is: ascii-> " 10"
Is there any way to convert int data to binary array.I mean,
Code:
short int datax;
datax=10;
function(ascii,datax);
result is: ascii->"0000000000001010"
Thanks in advice