Outputting a character with putc()

Tuesday, October 14, 2014
/* 0503 Outputting a character with putc() 0503 */
#include <stdio.h>

main()
{
    int ch;

    ch = 65; /* the numeric value of A */
    printf("The character that has numeric value of 65 is:\n");
    putc(ch, stdout);
    return 0;
}

Copyright @ 2015 Tron!

Labels

Blog Archive