putchar function --output one character
You can output one character with the putchar function. You can use it by reading the stdio.h header.
#include <stdio.h> int putchar (int c);
Putchar function sample
This is a sample that outputs one character at a time with the putchar function.
#include <stdio.h>
#include <stdint.h>
#include <string.h>
int main (void) {
const char * message = "Hello";
int32_t message_length = strlen (message);
for (int32_t i = 0; i <message_length; i ++) {
putchar (message [i]);
}
putchar ('\ n');
}
This is the output result.
Hello
C Language Zemi