How to print an integer using only putchar

//	recursive version
void PrintNum(int Num) {
  if (Num == 0)
  PrintNum(Num / 10);
  Puthcar(‘0’ + Num % 10);

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.