Hi.. I want to send Binary Data using printf() function for examle if I do
printf("%d",i)
Thanks Jhon.....It works.. But how can we send Binary Data when we have a float data type instead of integer.
"But how can we send Binary Data when we have a float data type instead of integer." You will have to read the compiler Manual to find the internal representation of the float type, and then devise a means to access the individual bytes of that representation. This is standard 'C' stuff; the main choices are: [1] shift & mask - usually portable, but often slow; [2] use a union - non-portable, but usually quicker Try a 'Search', as this has definitely been discussed before!
how can we send Binary Data when we have a float data type
. . . float x; putchar (((unsigned char *) &x) [0]); putchar (((unsigned char *) &x) [1]); putchar (((unsigned char *) &x) [2]); putchar (((unsigned char *) &x) [3]); . . .