Examples of stdio
int c = getchar(); // read a single input character putchar('x'); // print a single character
char * text = "please enter your name:";puts(text); // print the text stringchar buffer[120];gets(buffer); // read a line of input
FILE * fp = fopen("mydata.dat", "r");if (fp == NULL)puts("file cannot be opened");
fputc('z', fp); // write character to fpint c = fgetc(fp); // read character from fpchar * msg = "unrecoverable program error";fputs(msg, stderr); // write message to standard error output