Formatted Functions
The formatted functions used in C programming are printf and scanf functions.
Printf prints the formatted output on screen as specified in format specifier.This function can also be used for displaying all the datatype variables.
e.g.
printf(char,var1,var2,....);
This function is used to enter the data.
The scanf function accepts the formatted input from user as specified in format specifier & in variable address given as parameter.
e.g.
scanf("%d",&char);
Example:
main()
{
int x;
char A;
printf("\nx=%d",x);
printf("\nx=%c",ch);
printf("\nPress any key to continue");
getch();
}
In the program above \n is the new line character.

The idea of programming might sound like a frightening task, but don’t worry. We designed this blog so that you can get your feet wet without stepping into the deeper complexities of the programming.
This Blog is dedicated to all those people who want to learn the most basic but important Programming Language'C Programming'.
If done step wise C language is easy and fun to learn.
So lets get started.
Start reading from the First Post to understand C programming.You may read a desired topic from the labels.
Press Ctrl+D to add this page to your Favourites/Bookmarks for further reference.
Note:Your comments,queries and suggestions are welcome.Feel free to post them in the the comment boxes available after every post.
This Blog is dedicated to all those people who want to learn the most basic but important Programming Language'C Programming'.
If done step wise C language is easy and fun to learn.
So lets get started.
Start reading from the First Post to understand C programming.You may read a desired topic from the labels.
Press Ctrl+D to add this page to your Favourites/Bookmarks for further reference.
Note:Your comments,queries and suggestions are welcome.Feel free to post them in the the comment boxes available after every post.
Thursday, May 15, 2008
Inpu-output functions(Formatted)
Labels:
Inpu-output functions
Subscribe to:
Post Comments (Atom)



0 comments:
Post a Comment