C / stdio.h / putchar
clearerr, fclose, feof, ferror, fflush, fgetc, fgetpos, fgets, fopen, fprintf, fputc, fputs, fread, freopen, fscanf, fseek, fsetpos, ftell, fwrite, getc, getcha, gets, perror, printf, putc, » putchar, puts, remove, rename, rewind, scanf, setbuf, setvbuf, sprintf, sscanf, tmpfile, tmpnam, ungetc, vfprintf, vprintf, vsprintf,
Funcion: putchar()
Sintaxis:
Descripcion: Esta función es equivalente a putc con el segundo argumento stdout.
Ejemplo:
Sintaxis:
int putchar(int c);
Descripcion: Esta función es equivalente a putc con el segundo argumento stdout.
Ejemplo:
#include <stdio.h> int main() { char nombre[20]=""; int i; printf( "Escribe tu nombre: " ); scanf( "%s", nombre ); printf( "Tu nombre, al reves:\n" ); for( i=strlen(nombre)-1; i>=0; i-- ) putchar( nombre[i] ); printf( "\n" ); return 0; }