Google
 
Webcprogramming.com




An Affiliate of AIHorizon




putchar()

Prototype: int putchar(int achar);
Header File: stdio.h (C) or cstdio (C++)
Explanation: Putchar writes the character corresponding to the ASCII value of achar to stdout, which is usually the monitor. It returns achar.



#include <cstdio>

using namespace std;

//Example outputs the character corresponding to the ASCII value 65
int main()
{
    putchar(65);
}
Other Functions

-----
Interested in advertising with us?
Please read our privacy policy.
Copyright © 1997-2005 Cprogramming.com. All rights reserved.

Geodesy Designs