Back to Problem Solutions forum
Any suggestions ? I compared my output properly.And it is exactly the same as expected.
Hi,
If I try your code with the sample input data, it outputs 2 lines, when only one is required.
Also
the first line starts with 3 bytes of hex low values '\0'
the second line has a byte of hex low values between number & verycomplex
the second line ends with 6 bytes of hex low values
This may be a better way of showing what your code is producing
00 00 00 77 68 6F 6D 74 68 65 62 65 6C 6C 74 6F 6C 6C 73 66 6F 72 0A
\0 \0 \0 w h o m t h e b e l l t o l l s f o r \n
6E 75 6D 62 65 72 00 76 65 72 79 63 6F 6D 70 6C 65 78 00 00 00 00 00 00 0A
n u m b e r \0 v e r y c o m p l e x \0 \0 \0 \0 \0 \0 \n