How to print an integer using only putchar

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

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.

    StudentProjects.in