Hello friends,
I cannot undestand the difference between the following two commands. Infact I want to know exactly what does the number between % and X does in this command.
And what is the significance of 0 before the number, after %.
sprintf( m_szCommand, "TX %01X", 0x0801 );
sprintf( m_szCommand, "TX %04X", 0x0801 );
Assume that I have declared m_szCommand as char m_szCommand[10]
Can any one of you explain this?
thanks in advance
RSR
I cannot undestand the difference between the following two commands. Infact I want to know exactly what does the number between % and X does in this command.
And what is the significance of 0 before the number, after %.
sprintf( m_szCommand, "TX %01X", 0x0801 );
sprintf( m_szCommand, "TX %04X", 0x0801 );
Assume that I have declared m_szCommand as char m_szCommand[10]
Can any one of you explain this?
thanks in advance
RSR
Comment