getchar(), putchar(), scanf(), printf()
1. getchar() Description: Reads a single character from the standard input (keyboard). Input is buffered, so you need to press Enter after entering the character. Syntax: char ch = getchar(); Example: #include <stdio.h> int main() { char ch; printf(“Enter a character: “); ch = getchar(); // Reads a single character printf(“You entered: “); putchar(ch); // […]
getchar(), putchar(), scanf(), printf() Read More »