- C String Char Functions
- C String Char Functions
- C isalnum()
- C isalpha()
- C isblank()
- C iscntrl()
- C isdigit()
- C isgraph()
- C islower()
- C isprint()
- C ispunct()
- C isspace()
- C isupper()
- C isxdigit()
- C memchr()
- C memcmp()
- C memcpy()
- C memmove()
- C memset()
- C strcat()
- C strchr()
- C strcmp()
- C strcoll()
- C strcpy()
- C strcspn()
- C strerror()
- C strlen()
- C strncat()
- C strncmp()
- C strncpy()
- C strpbrk()
- C strrchr()
- C strspn()
- C strstr()
- C strtok()
- C strxfrm()
- C tolower()
- C toupper()
- C Input/Output Functions
- C Input/Output Functions
- C clearerr()
- C fclose()
- C feof()
- C ferror()
- C fflush()
- C fgetc()
- C fgetpos()
- C fgets()
- C fopen()
- C fprintf()
- C fputc()
- C fputs()
- C fread()
- C freopen()
- C fscanf()
- C fseek()
- C fsetpos()
- C ftell()
- C fwrite()
- C getc()
- C getchar()
- C gets()
- C perror()
- C printf()
- C putc()
- C putchar()
- C puts()
- C remove()
- C rename()
- C rewind()
- C scanf()
- C setbuf()
- C setvbuf()
- C snprintf()
- C sprintf()
- C sscanf()
- C tmpfile()
- C tmpnam()
- C ungetc()
- C vprintf()
- C vfprintf()
- C vsprintf()
- C vsnprintf()
- C vscanf()
- C vfscanf()
- C vsscanf()
- C Dynamic Allocation
- C Dynamic Allocation
- C calloc()
- C free()
- C malloc()
- C realloc()
- C Time/Date Functions
- C Time/Date Functions
- C asctime()
- C clock()
- C ctime()
- C difftime()
- C gmtime()
- C localeconv()
- C localtime()
- C mktime()
- C setlocale()
- C strftime()
- C time()
- C Programming Tutorial
- C Tutorial
- C Programming Examples
- C Programming Examples
- C Programming Test
- C Programming Test
- Give Online Test
- All Test List
C putchar()
The putchar() function writes the character contained in least significant byte of ch to the stdout. It is functionally equivalent to putc(ch, stdout). Because the character arguments are elevated to integer at the time of the call, you can use character values as the arguments to putchar().
putchar() Syntax
#include<stdio.h> int putchar(int ch);
putchar() Example
Following loop writes to stdout the characters in string str. The null terminator is not written :
for(; *str; str++) { puchar(*str); }
« Previous Function Next Function »