Login
Your Email
Pasword
Home
Write
Trending
History
Liked
Dashboard

Unformatted input functions explanation - Programming in #C (module-16)

In this section we will discuss on the input and output functions. Unformatted and formatted input and output functions of #C.

Do you have similar website/ Product?
Show in this page just for only $2 (for a month)
Create an Ad
0/60
0/180
This is the 16th module on learning C with us. Earlier we discussed on the basic introduction and structure of C, preprocessor it's features, intermediate and executable codes. compilation and execution process of a C program. And keywords and identifiers, data types, variables and constants, scope of variables, operators and expressions in C. Type casting in #C. Introduction to input and output functions and reading a character in #C. 
In this section we will discuss on the input and output functions. Unformatted and formatted input and output functions of #C.
Input/output in C :-
Input : 
In any programming language input means to feed some data into program. This can be given in the form of file or from command line.
Output :
In any programming language output means to display some data on screen, printer or in any file.
C programming language provides a set of built- in functions for input/output. 
There are two types of input statements in C :->
1. Unformatted input functions.
2. Formatted input functions.

Unformatted input functions :-
* getchar() : used to read a character 
* putchar() : used to display a character 
getc(), getch(), getche() : used to read a character 
putc() : used to display a character 
gets() : used to read a string
puts() : used to display a string
For example :
main()
{   char c;
     printf("enter a character");
     c = getc();
     putc(c);
}
For formatted input functions you may refer to next module that is module 17 here ? :
Formatted input functions 
In next module we will continue our discussions on formatted input functions. For more information regarding #C please be updated with us only on Www.newsandstory.com as we provide all the information on all the topics covered in #C.
CONTINUE READING
Unformatted
formatted
input
output
functions
#C
Programming
coding
learning
technology
Dalpat I
Content writer