Loading

Showing posts with label Putc Example. Show all posts

C- Program - Putc Example


Putc Example


#include <stdio.h>

int main(void)
{
   char msg[] = "Hello world\n";
   int i = 0;

   while (msg[i])
      putc(msg[i++], stdout);
   return 0;
}

Posted in | Leave a comment