0% found this document useful (0 votes)
27 views1 page

Types of Functions No - Types of Functions Details

The document discusses different types of input and output functions in C programming. It describes input functions that read from the keyboard, files, or network and output functions that write to the console, files, or network. It further distinguishes between formatted and unformatted input/output functions and provides examples of unformatted input functions like get(), getchar(), getline(), put(), and write().

Uploaded by

Mdv Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

Types of Functions No - Types of Functions Details

The document discusses different types of input and output functions in C programming. It describes input functions that read from the keyboard, files, or network and output functions that write to the console, files, or network. It further distinguishes between formatted and unformatted input/output functions and provides examples of unformatted input functions like get(), getchar(), getline(), put(), and write().

Uploaded by

Mdv Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Types of functions

No Details
Types of functions
.
1 Input functions It reads the input from the keyboard, file and network program
2 Output functions It writes the output to console, file and network program

Types Of Input/output Functions


No Details
Functions
.
Formatted input/output Used for performing input/output operations at console and
1
functions. the resulting data is formatted
Unformatted input/output Used for performing input/output operations at console and
2
functions. the resulting data is unformatted

Unformatted Input/output Functions


No
Functions Description
.
1 Reads a single character from the user at the console and assigns it to
get(char *) the char array in its argument, but needs an Enter key to be pressed at
the end.
2 get() Reads a single character from the user at the console, and returns it.
3 getline(char* arr, Reads a line of characters, entered by the user at the console which
int size) ends with a newline character or until the size of.
4 put(char ch) Writes a single character at the console.
5 write(char *arr,
Writes a number of characters in a char array to the console.
int num)

You might also like