This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Regarding usage of printf for serial communication

I am writing some serial data transfer apllication, i was seeing some examples given by keil. in that hello world example i have seen. i that they have used printf function which will print in serial window.... there if i am using printf("%x",variable say 'a');there it is appeding a zero at the end of variable. please clarify y it is happening so?

Parents
  • Andy, Andy, you do not get it. Reading is not cool.

    Suggesting that the young folks should read, let alone learn to code like we dinosaurs did instead of posting "plz send me the code" is ridiculous. Why should they even think of doing any actual work when some generous dinosaur will respond to "plz send me the code". I do wonder however what they will do when we dinosaurs go gently into the good night and no one will respond to "plz send me the code".

    Erik

Reply
  • Andy, Andy, you do not get it. Reading is not cool.

    Suggesting that the young folks should read, let alone learn to code like we dinosaurs did instead of posting "plz send me the code" is ridiculous. Why should they even think of doing any actual work when some generous dinosaur will respond to "plz send me the code". I do wonder however what they will do when we dinosaurs go gently into the good night and no one will respond to "plz send me the code".

    Erik

Children